![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "chip.h"Go to the source code of this file.
Functions | |
| STATIC uint8_t | getAdcClkDiv (bool burstMode, uint32_t adcRate, uint8_t clks) |
| void | Chip_ADC_DeInit (LPC_ADC_T *pADC) |
| Shutdown ADC. | |
| void | Chip_ADC_Init (LPC_ADC_T *pADC, ADC_Clock_Setup_T *ADCSetup) |
| Initialize the ADC peripheral and the ADC setup structure to default value. | |
| void | Chip_ADC_Set_StartMode (LPC_ADC_T *pADC, CHIP_ADC_START_MODE_T mode, CHIP_ADC_EDGE_CFG_T EdgeOption) |
| Select the mode starting the AD conversion. | |
| void | Chip_ADC_Set_SampleRate (LPC_ADC_T *pADC, ADC_Clock_Setup_T *ADCSetup, uint32_t rate) |
| Set the ADC Sample rate. | |
| void | Chip_ADC_Set_Resolution (LPC_ADC_T *pADC, ADC_Clock_Setup_T *ADCSetup, CHIP_ADC_RESOLUTION_T resolution) |
| Set the ADC accuracy bits. | |
| void | Chip_ADC_Channel_Enable_Cmd (LPC_ADC_T *pADC, CHIP_ADC_CHANNEL_T channel, FunctionalState NewState) |
| Enable or disable the ADC channel on ADC peripheral. | |
| void | Chip_ADC_Burst_Cmd (LPC_ADC_T *pADC, FunctionalState NewState) |
| Enable burst mode. | |
| Status | Chip_ADC_Read_Byte (LPC_ADC_T *pADC, CHIP_ADC_CHANNEL_T channel, uint8_t *data) |
| Read the ADC value and convert it to 8bits value. | |
Definition at line 47 of file adc_13xx.c.