LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gpio_8xx.h File Reference

Go to the source code of this file.

Macros

#define LPC8XX_PORT_NUM   (0)
 

Enumerations

enum  CHIP_PIN_DIR_T { PIN_DIR_INPUT = 0, PIN_DIR_OUTPUT = 1 }
 

Functions

STATIC INLINE void Chip_GPIO_Init (LPC_GPIO_T *pGPIO)
 Initialize GPIO block.
 
STATIC INLINE void Chip_GPIO_WritePortBit (LPC_GPIO_T *pGPIO, uint32_t port, uint8_t bit, bool setting)
 Set a GPIO port/bit state.
 
STATIC INLINE void Chip_GPIO_WriteDirBit (LPC_GPIO_T *pGPIO, uint32_t port, uint8_t bit, bool setting)
 Seta GPIO direction.
 
STATIC INLINE bool Chip_GPIO_ReadPortBit (LPC_GPIO_T *pGPIO, uint32_t port, uint8_t bit)
 Read a GPIO state.
 
STATIC INLINE bool Chip_GPIO_ReadDirBit (LPC_GPIO_T *pGPIO, uint32_t port, uint8_t bit)
 Read a GPIO direction (out or in)
 
void Chip_GPIO_SetDir (LPC_GPIO_T *pGPIO, uint8_t portNum, uint32_t bitValue, uint8_t out)
 Set Direction for a GPIO port.
 
STATIC INLINE void Chip_FIO_SetValue (LPC_GPIO_T *pGPIO, uint8_t portNum, uint32_t bitValue)
 Set a GPIO port/bit to the high state.
 
STATIC INLINE void Chip_FIO_ClearValue (LPC_GPIO_T *pGPIO, uint8_t portNum, uint32_t bitValue)
 Set a GPIO port/bit to the low state.
 
STATIC INLINE uint32_t Chip_FIO_ReadValue (LPC_GPIO_T *pGPIO, uint8_t portNum)
 Read current bit states for the selected port.