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

Go to the source code of this file.

Enumerations

enum  CHIP_SCT_MATCH_REG_T {
  SCT_MATCH_0 = 0, SCT_MATCH_1 = 1, SCT_MATCH_2 = 2, SCT_MATCH_3 = 3,
  SCT_MATCH_4 = 4
}
 
enum  CHIP_SCT_EVENT_T {
  SCT_EVT_0 = (1 << 0), SCT_EVT_1 = (1 << 1), SCT_EVT_2 = (1 << 2), SCT_EVT_3 = (1 << 3),
  SCT_EVT_4 = (1 << 4)
}
 

Functions

STATIC INLINE void Chip_SCT_Config (LPC_SCT_T *pSCT, uint32_t value)
 Configures the State Configurable Timer.
 
STATIC INLINE void Chip_SCT_SetCount (LPC_SCT_T *pSCT, uint32_t count)
 Set unified count value in State Configurable Timer.
 
STATIC INLINE void Chip_SCT_SetCountL (LPC_SCT_T *pSCT, uint16_t count)
 Set lower count value in State Configurable Timer.
 
STATIC INLINE void Chip_SCT_SetCountH (LPC_SCT_T *pSCT, uint16_t count)
 Set higher count value in State Configurable Timer.
 
STATIC INLINE void Chip_SCT_SetMatchCount (LPC_SCT_T *pSCT, CHIP_SCT_MATCH_REG_T n, uint32_t value)
 Set unified match count value in State Configurable Timer.
 
STATIC INLINE void Chip_SCT_SetMatchReload (LPC_SCT_T *pSCT, CHIP_SCT_MATCH_REG_T n, uint32_t value)
 Set unified match reload count value in State Configurable Timer.
 
STATIC INLINE void Chip_SCT_EventIntEnable (LPC_SCT_T *pSCT, CHIP_SCT_EVENT_T evt)
 Enable the interrupt for the specified event in State Configurable Timer.
 
STATIC INLINE void Chip_SCT_EventIntDisable (LPC_SCT_T *pSCT, CHIP_SCT_EVENT_T evt)
 Disable the interrupt for the specified event in State Configurable Timer.
 
STATIC INLINE void Chip_SCT_ClearEventFlag (LPC_SCT_T *pSCT, CHIP_SCT_EVENT_T evt)
 Clear the specified event flag in State Configurable Timer.
 
void Chip_SCT_Init (LPC_SCT_T *pSCT)
 Initializes the State Configurable Timer.
 
void Chip_SCT_DeInit (LPC_SCT_T *pSCT)
 Deinitializes the State Configurable Timer.