SAM Peripheral Analog-to-Digital Converter Driver.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "adc_callback.h"
Functions | |
static void | _adc_interrupt_handler (const uint8_t instance) |
void | adc_abort_job (struct adc_module *module_inst, enum adc_job_type type) |
Aborts an ongoing job. More... | |
enum status_code | adc_get_job_status (struct adc_module *module_inst, enum adc_job_type type) |
Gets the status of a job. More... | |
void | ADC_Handler (void) |
Interrupt handler for the ADC module. More... | |
enum status_code | adc_read_buffer_job (struct adc_module *const module_inst, uint16_t *buffer, uint16_t samples) |
Read multiple samples from ADC. More... | |
void | adc_register_callback (struct adc_module *const module, adc_callback_t callback_func, enum adc_callback callback_type) |
Registers a callback. More... | |
void | adc_unregister_callback (struct adc_module *const module, enum adc_callback callback_type) |
Unregisters a callback. More... | |
Variables | |
struct adc_module * | _adc_instances [ADC_INST_NUM] |
|
static |
References ADC_CALLBACK_ERROR, ADC_CALLBACK_READ_BUFFER, ADC_CALLBACK_WINDOW, adc_disable_interrupt(), ADC_INTERRUPT_RESULT_READY, adc_start_conversion(), STATUS_BUSY, and STATUS_OK.
Referenced by ADC_Handler().
void ADC_Handler | ( | void | ) |
Interrupt handler for the ADC module.
References _adc_interrupt_handler().
struct adc_module* _adc_instances[ADC_INST_NUM] |
Referenced by adc_init().