LPCOpen Platform for LPC112X microcontrollers  112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
Functions
adc_112x.c File Reference
#include "chip.h"

Go to the source code of this file.

Functions

void Chip_ADC_SetIntBits (LPC_ADC_T *pADC, uint32_t intMask)
 
void Chip_ADC_ClearIntBits (LPC_ADC_T *pADC, uint32_t intMask)
 
void Chip_ADC_SetTHRSELBits (LPC_ADC_T *pADC, uint32_t mask)
 
void Chip_ADC_ClearTHRSELBits (LPC_ADC_T *pADC, uint32_t mask)
 
void Chip_ADC_Init (LPC_ADC_T *pADC, uint32_t flags)
 Initialize the ADC peripheral. More...
 
void Chip_ADC_DeInit (LPC_ADC_T *pADC)
 Shutdown ADC. More...
 
void Chip_ADC_SetClockRate (LPC_ADC_T *pADC, uint32_t rate)
 Set ADC clock rate. More...
 
void Chip_ADC_StartCalibration (LPC_ADC_T *pADC)
 Start ADC calibration. More...
 
void Chip_ADC_SetSequencerBits (LPC_ADC_T *pADC, ADC_SEQ_IDX_T seqIndex, uint32_t bits)
 Helper function for safely setting ADC sequencer register bits. More...
 
void Chip_ADC_ClearSequencerBits (LPC_ADC_T *pADC, ADC_SEQ_IDX_T seqIndex, uint32_t bits)
 Helper function for safely clearing ADC sequencer register bits. More...
 
void Chip_ADC_EnableInt (LPC_ADC_T *pADC, uint32_t intMask)
 Enable interrupts in ADC (sequencers A/B and overrun) More...
 
void Chip_ADC_DisableInt (LPC_ADC_T *pADC, uint32_t intMask)
 Disable interrupts in ADC (sequencers A/B and overrun) More...
 
void Chip_ADC_SetThresholdInt (LPC_ADC_T *pADC, uint8_t ch, ADC_INTEN_THCMP_T thInt)
 Enable a threshold event interrupt in ADC. More...
 
void Chip_ADC_SelectTH0Channels (LPC_ADC_T *pADC, uint32_t channels)
 Select threshold 0 values for comparison for selected channels. More...
 
void Chip_ADC_SelectTH1Channels (LPC_ADC_T *pADC, uint32_t channels)
 Select threshold 1 value for comparison for selected channels. More...
 

Function Documentation

void Chip_ADC_ClearIntBits ( LPC_ADC_T pADC,
uint32_t  intMask 
)

Definition at line 59 of file adc_112x.c.

void Chip_ADC_ClearTHRSELBits ( LPC_ADC_T pADC,
uint32_t  mask 
)

Definition at line 83 of file adc_112x.c.

void Chip_ADC_SetIntBits ( LPC_ADC_T pADC,
uint32_t  intMask 
)

Definition at line 47 of file adc_112x.c.

void Chip_ADC_SetTHRSELBits ( LPC_ADC_T pADC,
uint32_t  mask 
)

Definition at line 71 of file adc_112x.c.