Analog-to-Digital Converter interface driver for SAM4L.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "adcife.h"
Functions | |
void | adc_ch_set_config (struct adc_dev_inst *const dev_inst, struct adc_ch_config *cfg) |
Configure ADC channel with specified value. More... | |
void | adc_disable (struct adc_dev_inst *const dev_inst) |
Disable ADC module. More... | |
status_code_t | adc_enable (struct adc_dev_inst *const dev_inst) |
Enable ADC module. More... | |
status_code_t | adc_init (struct adc_dev_inst *const dev_inst, Adcife *const adc, struct adc_config *const cfg) |
Initialize the ADC module. More... | |
static void | adc_interrupt (void) |
Common ADCIFE interrupt handler. More... | |
void | adc_pdca_set_config (struct adc_pdca_config *cfg) |
Configure ADC sequencer support multi-channel mode. More... | |
void | adc_set_callback (struct adc_dev_inst *const dev_inst, adc_interrupt_source_t source, adc_callback_t callback, uint8_t irq_line, uint8_t irq_level) |
Set callback for ADC. More... | |
void | adc_set_config (struct adc_dev_inst *const dev_inst, struct adc_config *cfg) |
Configure ADC with specified value. More... | |
void | ADCIFE_Handler (void) |
Interrupt handler for ADCIFE interrupt. More... | |
Variables | |
adc_callback_t | adc_callback_pointer |