LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gpio_002.h File Reference
#include "sys_config.h"
#include "cmsis.h"

Go to the source code of this file.

Data Structures

struct  IP_GPIO_002_T
 GPIO port (GPIO_PORT) for LPC175x_6x, LPC177x_8x and LPC407x_8x. More...
 

Macros

#define GPIO_PORT_BITS   32
 

Functions

STATIC INLINE void IP_GPIO_Init (IP_GPIO_002_T *pGPIO)
 Initialize GPIO block.
 
STATIC INLINE void IP_GPIO_WritePortBit (IP_GPIO_002_T *pGPIO, uint8_t Bit, bool Setting)
 Set a GPIO port/bit state.
 
STATIC INLINE void IP_GPIO_WriteDirBit (IP_GPIO_002_T *pGPIO, uint8_t Bit, bool Setting)
 Set a GPIO direction.
 
STATIC INLINE bool IP_GPIO_ReadPortBit (IP_GPIO_002_T *pGPIO, uint8_t Bit)
 Read a GPIO state.
 
STATIC INLINE bool IP_GPIO_ReadDirBit (IP_GPIO_002_T *pGPIO, uint8_t Bit)
 Read a GPIO direction (out or in)