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

Go to the source code of this file.

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)