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

Go to the source code of this file.

## Enumerations
enum | CHIP_ACMP_POS_INPUT_T { ACMP_POSIN_VLO = (0 << 8), ACMP_POSIN_ACMP_I1 = (1 << 8), ACMP_POSIN_ACMP_I2 = (2 << 8), ACMP_POSIN_INT_REF = (6 << 8) }
enum | CHIP_ACMP_NEG_INPUT_T { ACMP_NEGIN_VLO = (0 << 11), ACMP_NEGIN_ACMP_I1 = (1 << 11), ACMP_NEGIN_ACMP_I2 = (2 << 11), ACMP_NEGIN_INT_REF = (6 << 11) }

## Functions
void | Chip_ACMP_Init (LPC_CMP_T *pACMP)
| Initializes the ACMP.
void | Chip_ACMP_Deinit (LPC_CMP_T *pACMP)
| Deinitializes the ACMP.
STATIC INLINE uint32_t | Chip_ACMP_GetCompStatus (LPC_CMP_T *pACMP)
| Returns the current comparator status.
STATIC INLINE void | Chip_ACMP_EdgeClear (LPC_CMP_T *pACMP)
| Clears the ACMP interrupt (EDGECLR bit)
STATIC INLINE void | Chip_ACMP_SetEdgeSelection (LPC_CMP_T *pACMP, IP_ACMP_001_EDGESEL_T edgeSel)
| Sets up ACMP edge selection.
STATIC INLINE void | Chip_ACMP_EnableSyncCompOut (LPC_CMP_T *pACMP)
| Synchronizes Comparator output to bus clock.
STATIC INLINE void | Chip_ACMP_DisableSyncCompOut (LPC_CMP_T *pACMP)
| Sets comparator output to be used directly (no sync)
STATIC INLINE void | Chip_ACMP_SetPosVoltRef (LPC_CMP_T *pACMP, CHIP_ACMP_POS_INPUT_T Posinput)
| Selects positive voltage input.
STATIC INLINE void | Chip_ACMP_SetNegVoltRef (LPC_CMP_T *pACMP, CHIP_ACMP_NEG_INPUT_T Neginput)
| Selects negative voltage input.
STATIC INLINE void | Chip_ACMP_SetHysteresis (LPC_CMP_T *pACMP, IP_ACMP_HYS_001_T hys)
| Selects hysteresis level.
STATIC INLINE void | Chip_ACMP_SetupAMCPRefs (LPC_CMP_T *pACMP, IP_ACMP_001_EDGESEL_T edgeSel, CHIP_ACMP_POS_INPUT_T Posinput, CHIP_ACMP_NEG_INPUT_T Neginput, IP_ACMP_HYS_001_T hys)
| Helper function for setting up ACMP control.
STATIC INLINE void | Chip_ACMP_SetupVoltLadder (LPC_CMP_T *pACMP, uint32_t ladsel, bool ladrefVDDCMP)
| Sets up voltage ladder.
STATIC INLINE void | Chip_ACMP_EnableVoltLadder (LPC_CMP_T *pACMP)
| Enables voltage ladder.
STATIC INLINE void | Chip_ACMP_DisableVoltLadder (LPC_CMP_T *pACMP)
| Disables voltage ladder.