LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
adc_18xx_43xx.c File Reference
#include "adc_18xx_43xx.h"

Go to the source code of this file.

Functions

static CCU_CLK_T Chip_ADC_GetClk (LPC_ADC_Type *pADC)
 
void Chip_ADC_Init (LPC_ADC_Type *pADC, ADC_Clock_Setup_Type *ADCSetup)
 Initialize the ADC peripheral and the ADC setup structure to default value.
 
void Chip_ADC_Set_StartMode (LPC_ADC_Type *pADC, ADC_StartMode mode, ADC_EdgeCfg EdgeOption)
 Select the mode starting the AD conversion.
 
void Chip_ADC_Set_SampleRate (LPC_ADC_Type *pADC, ADC_Clock_Setup_Type *ADCSetup, uint32_t rate)
 Set the ADC Sample rate.
 
void Chip_ADC_Set_Resolution (LPC_ADC_Type *pADC, ADC_Clock_Setup_Type *ADCSetup, ADC_Resolution resolution)
 Set the ADC accuracy bits.
 
void Chip_ADC_Channel_Enable_Cmd (LPC_ADC_Type *pADC, ADC_Channel channel, FunctionalState NewState)
 Enable or disable the ADC channel on ADC peripheral.
 
void Chip_ADC_Burst_Cmd (LPC_ADC_Type *pADC, FunctionalState NewState)
 Enable burst mode.
 
Status Chip_ADC_Read_Byte (LPC_ADC_Type *pADC, uint8_t *data)
 Read the ADC value and convert it to 8bits value.
 
void Chip_ADC_Active_Channel (uint8_t channel)
 Set a channel to be read A/D data.
 

Variables

static uint8_t active_channel
 

Function Documentation

static CCU_CLK_T Chip_ADC_GetClk ( LPC_ADC_Type pADC)
static

Definition at line 50 of file adc_18xx_43xx.c.

Variable Documentation

uint8_t active_channel
static

Definition at line 39 of file adc_18xx_43xx.c.