21 #ifndef __RFLPC_ADC_H__
22 #define __RFLPC_ADC_H__
28 #ifdef RFLPC_CONFIG_ENABLE_ADC
uint8_t rflpc_pin_t
Represents a pin.
uint16_t rflpc_adc_read(rflpc_pin_t pin)
Read the last converted value of specified pin using dedicated data register.
static void rflpc_adc_sample(rflpc_pin_t pin)
Start an ADC conversion on specified pin.
rflpc_clock_divider_t
This enums defines the different cpu clock dividers for use as peripheral clocks. ...
void rflpc_adc_burst_enable(rflpc_pin_t pin)
Enable an ADC pin to be sampled in burst mode.
void rflpc_adc_init(rflpc_pin_t pin, rflpc_clock_divider_t clock_divider)
Initializes the Analog/Digital Converter on given pin.
void rflpc_adc_burst_start()
Start ADC burst mode.
uint16_t rflpc_adc_read_global()
Read the last converted value of any ADC pin, using global data register.
void rflpc_adc_burst_init(rflpc_clock_divider_t clock_divider, rflpc_irq_handler_t handler)
Initializes the Analog/Digital converter for Burst Mode.
void(* rflpc_irq_handler_t)(void)
Interrupt handler type.