| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
gpio_003.h File Reference
`#include "sys_config.h"`
`#include "cmsis.h"`

Go to the source code of this file.

## Data Structures
struct | IP_GPIO_003_T
| GPIO port register block structure. More...

## Enumerations
enum | IP_GPIOPININT_MODE_T { GPIOPININT_FALLING_EDGE = 0, GPIOPININT_ACTIVE_LOW_LEVEL = 1, GPIOPININT_RISING_EDGE = (1 << 12), GPIOPININT_ACTIVE_HIGH_LEVEL = 1 | (1 << 12), GPIOPININT_BOTH_EDGES = (1 << 24), GPIOPININT_RISING_EDGE = 0x01, GPIOPININT_FALLING_EDGE = 0x02, GPIOPININT_RISING_EDGE = 0x01, GPIOPININT_FALLING_EDGE = 0x02, GPIOPININT_ACTIVE_HIGH_LEVEL = 0x04, GPIOPININT_ACTIVE_LOW_LEVEL = 0x08 }

## Functions
STATIC INLINE void | IP_GPIO_Init (IP_GPIO_003_T *pGPIO)
| Initialize GPIO block.
STATIC INLINE void | IP_GPIO_WritePort (IP_GPIO_003_T *pGPIO, uint16_t mask, uint16_t val)
| Write data to port.
STATIC INLINE void | IP_GPIO_WritePortBit (IP_GPIO_003_T *pGPIO, uint8_t pin, bool val)
| Set state of pin.
STATIC INLINE uint32_t | IP_GPIO_ReadPort (IP_GPIO_003_T *pGPIO)
| Read port state.
STATIC INLINE bool | IP_GPIO_ReadPortBit (IP_GPIO_003_T *pGPIO, uint8_t pin)
| Read pin state.
STATIC INLINE void | IP_GPIO_WriteDirBit (IP_GPIO_003_T *pGPIO, uint8_t pin, bool dir)
| Set GPIO direction for a pin.
STATIC INLINE void | IP_GPIO_SetDir (IP_GPIO_003_T *pGPIO, uint32_t bitVal, bool dir)
| Set GPIO direction for a port.
STATIC INLINE bool | IP_GPIO_ReadDirBit (IP_GPIO_003_T *pGPIO, uint8_t pin)
| Read a GPIO direction (out or in)
void | IP_GPIO_IntCmd (IP_GPIO_003_T *pGPIO, uint8_t pin, IP_GPIOPININT_MODE_T mode)
| Configure GPIO Interrupt.
STATIC INLINE bool | IP_GPIO_IntGetStatus (IP_GPIO_003_T *pGPIO, uint8_t pin)
| Get GPIO Interrupt Status.
STATIC INLINE void | IP_GPIO_IntClear (IP_GPIO_003_T *pGPIO, uint8_t pin)
| Clear GPIO Interrupt (Edge interrupt cases only)