| 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 | Macros | Enumerations | Functions
pinint_8xx.h File Reference

Go to the source code of this file.

## Data Structures
struct | LPC_PIN_INT_T
| LPC8xx Pin Interrupt and Pattern Match register block structure. More...

## Macros
#define | PMODE_EDGE (0)
#define | PMODE_LEVEL (1)
#define | PMODE_SET(t, p, x) (x ? (t->ISEL |= (x << p)) : (t->ISEL &= ~(1 << p)))
#define | ENRL_DISABLE (0)
#define | ENRL_ENABLE (1)
#define | ENRL_SET(t, p, x) (x ? (t->IENR |= (x << p)) : (t->IENR &= ~(1 << p)))
#define | SETENRL(t, p) (t->SIENR |= (1 << p))
#define | CENRL(t, p) (t->CIENR |= (1 << p))
#define | ENAF_LOW (0)
#define | ENAF_HIGH (1)
#define | ENAF_SET(t, p, x) (x ? (t->IENF |= (x << p)) : (t->IENF &= ~(1 << p)))
#define | SETENAF(t, p) (t->SIENF |= (1 << p))
#define | CENAF(t, p) (t->CIENF |= (1 << p))
#define | RDET_CLR(t, p) (t->RISE |= (1 << p))
#define | FDET_CLR(t, p) (t->FALL |= (1 << p))
#define | PSTAT_CRL(t, p) (t->IST |= (1 << p))

## Enumerations
enum | CHIP_PMI_PIN_T { PMI0 = 0, PMI1 = 1, PMI2 = 2, PMI3 = 3, PMI4 = 4, PMI5 = 5, PMI6 = 6, PMI7 = 7 }
enum | CHIP_PINT_CFG_T { PINT_ACTIVE_LOW = 0, PINT_ACTIVE_HIGH = 1, PINT_EDGE_DET = 2, PINT_LEVEL_DET = 4, PINT_RISING = 8, PINT_FALLING = 16 }

## Functions
void | Chip_PININT_Config (CHIP_PMI_PIN_T pin, CHIP_PINT_CFG_T cfg)
| Configure the Pattern Matching pins.