rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
adc.h File Reference

ADC peripheral driver. More...

#include <rflpc17xx/rflpc17xx.h>
#include <stdint.h>

Go to the source code of this file.

Functions

void rflpc_adc_init (rflpc_pin_t pin, rflpc_clock_divider_t clock_divider)
 Initializes the Analog/Digital Converter on given pin. More...
 
void rflpc_adc_burst_init (rflpc_clock_divider_t clock_divider, rflpc_irq_handler_t handler)
 Initializes the Analog/Digital converter for Burst Mode. More...
 
void rflpc_adc_burst_enable (rflpc_pin_t pin)
 Enable an ADC pin to be sampled in burst mode. More...
 
void rflpc_adc_burst_start ()
 Start ADC burst mode. More...
 
static void rflpc_adc_sample (rflpc_pin_t pin)
 Start an ADC conversion on specified pin. More...
 
uint16_t rflpc_adc_read (rflpc_pin_t pin)
 Read the last converted value of specified pin using dedicated data register. More...
 
uint16_t rflpc_adc_read_global ()
 Read the last converted value of any ADC pin, using global data register. More...
 

Detailed Description

ADC peripheral driver.

Definition in file adc.h.