SAM Peripheral Analog-to-Digital Converter Driver.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <adc.h>
Enumerations | |
enum | adc_job_type { ADC_JOB_READ_BUFFER } |
Enum for the possible types of ADC asynchronous jobs that may be issued to the driver. More... | |
Functions | |
Callback Management | |
void | adc_register_callback (struct adc_module *const module, adc_callback_t callback_func, enum adc_callback callback_type) |
void | adc_unregister_callback (struct adc_module *module, enum adc_callback callback_type) |
static void | adc_enable_callback (struct adc_module *const module, enum adc_callback callback_type) |
Enables callback. More... | |
static void | adc_disable_callback (struct adc_module *const module, enum adc_callback callback_type) |
Disables callback. More... | |
Job Management | |
enum status_code | adc_read_buffer_job (struct adc_module *const module_inst, uint16_t *buffer, uint16_t samples) |
enum status_code | adc_get_job_status (struct adc_module *module_inst, enum adc_job_type type) |
void | adc_abort_job (struct adc_module *module_inst, enum adc_job_type type) |