Руслан Урядинский / libuavcan

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

CHIP: LPC11xx Pin Interrupt and Pattern Match driver

CHIP: LPC11xx Pin Interrupt and Pattern Match driver

For device familes identified with CHIP definitions CHIP_LPC11AXX, CHIP_LPC11EXX, and CHIP_LPC11UXX only. More...

Data Structures

struct  LPC_PIN_INT_T
 LPC11xx Pin Interrupt and Pattern Match register block structure. More...

Functions

STATIC INLINE void Chip_PININT_Init (LPC_PIN_INT_T *pPININT)
 Initialize Pin interrupt block.
STATIC INLINE void Chip_PININT_DeInit (LPC_PIN_INT_T *pPININT)
 De-Initialize Pin interrupt block.
STATIC INLINE void Chip_PININT_SetPinModeEdge (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Configure the pins as edge sensitive in Pin interrupt block.
STATIC INLINE void Chip_PININT_SetPinModeLevel (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Configure the pins as level sensitive in Pin interrupt block.
STATIC INLINE uint32_t Chip_PININT_GetHighEnabled (LPC_PIN_INT_T *pPININT)
 Return current PININT rising edge or high level interrupt enable state.
STATIC INLINE void Chip_PININT_EnableIntHigh (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Enable high edge/level PININT interrupts for pins.
STATIC INLINE void Chip_PININT_DisableIntHigh (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Disable high edge/level PININT interrupts for pins.
STATIC INLINE uint32_t Chip_PININT_GetLowEnabled (LPC_PIN_INT_T *pPININT)
 Return current PININT falling edge or low level interrupt enable state.
STATIC INLINE void Chip_PININT_EnableIntLow (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Enable low edge/level PININT interrupts for pins.
STATIC INLINE void Chip_PININT_DisableIntLow (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Disable low edge/level PININT interrupts for pins.
STATIC INLINE uint32_t Chip_PININT_GetRiseStates (LPC_PIN_INT_T *pPININT)
 Return pin states that have a detected latched high edge (RISE) state.
STATIC INLINE void Chip_PININT_ClearRiseStates (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Clears pin states that had a latched high edge (RISE) state.
STATIC INLINE uint32_t Chip_PININT_GetFallStates (LPC_PIN_INT_T *pPININT)
 Return pin states that have a detected latched falling edge (FALL) state.
STATIC INLINE void Chip_PININT_ClearFallStates (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Clears pin states that had a latched falling edge (FALL) state.
STATIC INLINE uint32_t Chip_PININT_GetIntStatus (LPC_PIN_INT_T *pPININT)
 Get interrupt status from Pin interrupt block.
STATIC INLINE void Chip_PININT_ClearIntStatus (LPC_PIN_INT_T *pPININT, uint32_t pins)
 Clear interrupt status in Pin interrupt block.

Detailed Description

For device familes identified with CHIP definitions CHIP_LPC11AXX, CHIP_LPC11EXX, and CHIP_LPC11UXX only.


Function Documentation

STATIC INLINE void Chip_PININT_ClearFallStates ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Clears pin states that had a latched falling edge (FALL) state.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pins with latched states to clear
Returns:
Nothing

Definition at line 221 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_ClearIntStatus ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Clear interrupt status in Pin interrupt block.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pin interrupts to clear (ORed value of PININTCH*)
Returns:
Nothing

Definition at line 242 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_ClearRiseStates ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Clears pin states that had a latched high edge (RISE) state.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pins with latched states to clear
Returns:
Nothing

Definition at line 200 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_DeInit ( LPC_PIN_INT_T pPININT )

De-Initialize Pin interrupt block.

Parameters:
pPININT: The base address of Pin interrupt block
Returns:
Nothing

Definition at line 90 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_DisableIntHigh ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Disable high edge/level PININT interrupts for pins.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pins to disable (ORed value of PININTCH*)
Returns:
Nothing

Definition at line 144 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_DisableIntLow ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Disable low edge/level PININT interrupts for pins.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pins to disable (ORed value of PININTCH*)
Returns:
Nothing

Definition at line 179 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_EnableIntHigh ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Enable high edge/level PININT interrupts for pins.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pins to enable (ORed value of PININTCH*)
Returns:
Nothing

Definition at line 133 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_EnableIntLow ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Enable low edge/level PININT interrupts for pins.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pins to enable (ORed value of PININTCH*)
Returns:
Nothing

Definition at line 168 of file pinint_11xx.h.

STATIC INLINE uint32_t Chip_PININT_GetFallStates ( LPC_PIN_INT_T pPININT )

Return pin states that have a detected latched falling edge (FALL) state.

Parameters:
pPININT: The base address of Pin interrupt block
Returns:
PININT states (bit n = high) with a latched rise state detected

Definition at line 210 of file pinint_11xx.h.

STATIC INLINE uint32_t Chip_PININT_GetHighEnabled ( LPC_PIN_INT_T pPININT )

Return current PININT rising edge or high level interrupt enable state.

Parameters:
pPININT: The base address of Pin interrupt block
Returns:
A bifield containing the high edge/level interrupt enables for each interrupt. Bit 0 = PININT0, 1 = PININT1, etc. For each bit, a 0 means the high edge/level interrupt is disabled, while a 1 means it's enabled.

Definition at line 122 of file pinint_11xx.h.

STATIC INLINE uint32_t Chip_PININT_GetIntStatus ( LPC_PIN_INT_T pPININT )

Get interrupt status from Pin interrupt block.

Parameters:
pPININT: The base address of Pin interrupt block
Returns:
Interrupt status (bit n for PININTn = high means interrupt ie pending)

Definition at line 231 of file pinint_11xx.h.

STATIC INLINE uint32_t Chip_PININT_GetLowEnabled ( LPC_PIN_INT_T pPININT )

Return current PININT falling edge or low level interrupt enable state.

Parameters:
pPININT: The base address of Pin interrupt block
Returns:
A bifield containing the low edge/level interrupt enables for each interrupt. Bit 0 = PININT0, 1 = PININT1, etc. For each bit, a 0 means the low edge/level interrupt is disabled, while a 1 means it's enabled.

Definition at line 157 of file pinint_11xx.h.

STATIC INLINE uint32_t Chip_PININT_GetRiseStates ( LPC_PIN_INT_T pPININT )

Return pin states that have a detected latched high edge (RISE) state.

Parameters:
pPININT: The base address of Pin interrupt block
Returns:
PININT states (bit n = high) with a latched rise state detected

Definition at line 189 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_Init ( LPC_PIN_INT_T pPININT )

Initialize Pin interrupt block.

Parameters:
pPININT: The base address of Pin interrupt block
Returns:
Nothing
Note:
This function should be used after the Chip_GPIO_Init() function.

Definition at line 83 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_SetPinModeEdge ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Configure the pins as edge sensitive in Pin interrupt block.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pins (ORed value of PININTCH*)
Returns:
Nothing

Definition at line 98 of file pinint_11xx.h.

STATIC INLINE void Chip_PININT_SetPinModeLevel ( LPC_PIN_INT_T pPININT,
uint32_t  pins 
)

Configure the pins as level sensitive in Pin interrupt block.

Parameters:
pPININT: The base address of Pin interrupt block
pins: Pins (ORed value of PININTCH*)
Returns:
Nothing

Definition at line 109 of file pinint_11xx.h.