![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Data Structures | |
struct | IP_GPIO_001_Type |
GPIO port register block structure. More... | |
Macros | |
#define | GPIO_PORT_BITS 32 |
Functions | |
STATIC INLINE void | IP_GPIO_Init (IP_GPIO_001_Type *pGPIO) |
Initialize GPIO block. | |
STATIC INLINE void | IP_GPIO_WritePortBit (IP_GPIO_001_Type *pGPIO, uint32_t Port, uint8_t Bit, bool Setting) |
Set a GPIO port/bit state. | |
STATIC INLINE void | IP_GPIO_WriteDirBit (IP_GPIO_001_Type *pGPIO, uint32_t Port, uint8_t Bit, bool Setting) |
Seta GPIO direction. | |
STATIC INLINE bool | IP_GPIO_ReadPortBit (IP_GPIO_001_Type *pGPIO, uint32_t Port, uint8_t Bit) |
Read a GPIO state. | |
STATIC INLINE bool | IP_GPIO_ReadDirBit (IP_GPIO_001_Type *pGPIO, uint32_t Port, uint8_t Bit) |
Read a GPIO direction (out ot in) | |
#define GPIO_PORT_BITS 32 |
Definition at line 47 of file gpio_001.h.
STATIC INLINE void IP_GPIO_Init | ( | IP_GPIO_001_Type * | pGPIO | ) |
Initialize GPIO block.
pGPIO | : The Base Address of the GPIO block |
Definition at line 85 of file gpio_001.h.
STATIC INLINE bool IP_GPIO_ReadDirBit | ( | IP_GPIO_001_Type * | pGPIO, |
uint32_t | Port, | ||
uint8_t | Bit | ||
) |
Read a GPIO direction (out ot in)
pGPIO | : The Base Address of the GPIO block |
Port | : GPIO port to read |
Bit | : GPIO bit to read |
Definition at line 138 of file gpio_001.h.
STATIC INLINE bool IP_GPIO_ReadPortBit | ( | IP_GPIO_001_Type * | pGPIO, |
uint32_t | Port, | ||
uint8_t | Bit | ||
) |
Read a GPIO state.
pGPIO | : The Base Address of the GPIO block |
Port | : GPIO port to read |
Bit | : GPIO bit to read |
Definition at line 126 of file gpio_001.h.
STATIC INLINE void IP_GPIO_WriteDirBit | ( | IP_GPIO_001_Type * | pGPIO, |
uint32_t | Port, | ||
uint8_t | Bit, | ||
bool | Setting | ||
) |
Seta GPIO direction.
pGPIO | : The Base Address of the GPIO block |
Port | : GPIO port to set |
Bit | : GPIO bit to set |
Setting | : true for output, false for input |
Definition at line 109 of file gpio_001.h.
STATIC INLINE void IP_GPIO_WritePortBit | ( | IP_GPIO_001_Type * | pGPIO, |
uint32_t | Port, | ||
uint8_t | Bit, | ||
bool | Setting | ||
) |
Set a GPIO port/bit state.
pGPIO | : The Base Address of the GPIO block |
Port | : GPIO port to set |
Bit | : GPIO bit to set |
Setting | : true for high, false for low |
Definition at line 96 of file gpio_001.h.