![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Data Structures | |
struct | IP_GPIOPININT_001_Type |
GPIO pin interrupt register block structure. More... | |
Enumerations | |
enum | Gpio_PinInt_Mode_Enum { IP_GPIOPININT_RISING_EDGE = 0x01, IP_GPIOPININT_FALLING_EDGE = 0x02, IP_GPIOPININT_ACTIVE_HIGH_LEVEL = 0x04, IP_GPIOPININT_ACTIVE_LOW_LEVEL = 0x08 } |
Functions | |
void | IP_GPIOPININT_IntCmd (IP_GPIOPININT_001_Type *pGPIOPININT, uint8_t PortNum, Gpio_PinInt_Mode_Enum IntMode) |
Enable GPIO Interrupt. | |
STATIC INLINE bool | IP_GPIOPININT_IntGetStatus (IP_GPIOPININT_001_Type *pGPIOPININT, uint8_t PortNum) |
Get GPIO Interrupt Status. | |
STATIC INLINE void | IP_GPIOPININT_IntClear (IP_GPIOPININT_001_Type *pGPIOPININT, uint8_t PortNum) |
Clear GPIO Interrupt (Edge interrupt cases only) | |
IP_GPIOPININT_RISING_EDGE | |
IP_GPIOPININT_FALLING_EDGE | |
IP_GPIOPININT_ACTIVE_HIGH_LEVEL | |
IP_GPIOPININT_ACTIVE_LOW_LEVEL |
Definition at line 63 of file gpiopinint_001.h.
STATIC INLINE void IP_GPIOPININT_IntClear | ( | IP_GPIOPININT_001_Type * | pGPIOPININT, |
uint8_t | PortNum | ||
) |
Clear GPIO Interrupt (Edge interrupt cases only)
pGPIOPININT | : Pointer to GPIO interrupt register block |
PortNum | : GPIO port number interrupt |
Definition at line 100 of file gpiopinint_001.h.
void IP_GPIOPININT_IntCmd | ( | IP_GPIOPININT_001_Type * | pGPIOPININT, |
uint8_t | PortNum, | ||
Gpio_PinInt_Mode_Enum | IntMode | ||
) |
Enable GPIO Interrupt.
pGPIOPININT | : Pointer to GPIO interrupt register block |
PortNum | : GPIO port number interrupt |
IntMode | : Interrupt mode, should be: 0: Rising edge interrupt mode 1: Falling edge interrupt mode 2: Active-High interrupt mode 3: Active-Low interrupt mode |
Definition at line 51 of file gpiopinint_001.c.
STATIC INLINE bool IP_GPIOPININT_IntGetStatus | ( | IP_GPIOPININT_001_Type * | pGPIOPININT, |
uint8_t | PortNum | ||
) |
Get GPIO Interrupt Status.
pGPIOPININT | : Pointer to GPIO interrupt register block |
PortNum | : GPIO port number interrupt |
Definition at line 89 of file gpiopinint_001.h.