LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IP: GPIO Interrupt register block and driver

Data Structures

struct  IP_GPIOINT_001_Type
 GPIO Interrupt register block structure. More...
 

Enumerations

enum  Gpio_Int_Mode_Enum { IP_GPIOINT_RISING_EDGE = 0x01, IP_GPIOINT_FALLING_EDGE = 0x02 }
 

Functions

void IP_GPIOINT_IntCmd (IP_GPIOINT_001_Type *pGPIOPININT, uint8_t PortNum, uint32_t BitValue, Gpio_Int_Mode_Enum IntMode)
 Enable GPIO Interrupt.
 
bool IP_GPIOINT_IntGetStatus (IP_GPIOINT_001_Type *pGPIOPININT, uint8_t PortNum, uint32_t PinNum, Gpio_Int_Mode_Enum IntMode)
 Get GPIO Interrupt Status.
 
void IP_GPIOINT_IntClear (IP_GPIOINT_001_Type *pGPIOPININT, uint8_t PortNum, uint32_t BitValue)
 Clear GPIO Interrupt (Edge interrupt cases only)
 

Detailed Description

Enumeration Type Documentation

Enumerator:
IP_GPIOINT_RISING_EDGE 
IP_GPIOINT_FALLING_EDGE 

Definition at line 65 of file gpioint_001.h.

Function Documentation

void IP_GPIOINT_IntClear ( IP_GPIOINT_001_Type pGPIOPININT,
uint8_t  PortNum,
uint32_t  BitValue 
)

Clear GPIO Interrupt (Edge interrupt cases only)

Parameters
pGPIOPININT: Pointer to GPIO interrupt register block
PortNum: GPIO port number interrupt, should be: 0 (port 0) or 2 (port 2)
BitValue: GPIO Bit value that contains all bits on GPIO to enable, should be 0 to 0xFFFFFFFF
Returns
None
Parameters
PortNum: GPIO port number interrupt, should be: 0 (port 0) or 2 (port 2)
BitValue: GPIO Bit value that contains all bits on GPIO to enable, should be 0 to 0xFFFFFFFF
Returns
None

Definition at line 103 of file gpioint_001.c.

void IP_GPIOINT_IntCmd ( IP_GPIOINT_001_Type pGPIOPININT,
uint8_t  PortNum,
uint32_t  BitValue,
Gpio_Int_Mode_Enum  IntMode 
)

Enable GPIO Interrupt.

Parameters
pGPIOPININT: Pointer to GPIO interrupt register block
PortNum: GPIO port number interrupt, should be: 0 (port 0) or 2 (port 2)
BitValue: GPIO Bit value that contains all bits on GPIO to enable, should be 0 to 0xFFFFFFFF
IntMode: Interrupt mode, 0 = rising edge, 1 = falling edge
Returns
None

Definition at line 51 of file gpioint_001.c.

bool IP_GPIOINT_IntGetStatus ( IP_GPIOINT_001_Type pGPIOPININT,
uint8_t  PortNum,
uint32_t  PinNum,
Gpio_Int_Mode_Enum  IntMode 
)

Get GPIO Interrupt Status.

Parameters
pGPIOPININT: Pointer to GPIO interrupt register block
PortNum: GPIO port number interrupt, should be: 0 (port 0) or 2 (port 2)
PinNum: Pin number, should be: 0..30(with port 0) and 0..13 (with port 2)
IntMode: Interrupt mode, 0 = rising edge, 1 = falling edge
Returns
true if interrupt is pending, otherwise false

Definition at line 72 of file gpioint_001.c.