ADP service example ADC functions for SAM.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | ADC_CLOCK 6000000 |
Functions | |
uint16_t | adp_example_adc_get_value (void) |
void | adp_example_adc_init (void) |
#define ADC_CLOCK 6000000 |
Referenced by adp_example_adc_init().
uint16_t adp_example_adc_get_value | ( | void | ) |
References adc_get_latest_value(), adc_get_status(), and adc_start().
Referenced by transceive_data().
void adp_example_adc_init | ( | void | ) |
References ADC_CLOCK, adc_enable_channel(), adc_set_resolution(), ADC_TRIG_SW, pmc_enable_periph_clk(), and sysclk_get_main_hz().
Referenced by adp_example_init().