Microchip® Advanced Software Framework

adc_callback.h File Reference

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)
 Registers a callback. More...
 
void adc_unregister_callback (struct adc_module *module, enum adc_callback callback_type)
 Unregisters a callback. More...
 
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)
 Read multiple samples from ADC. 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_abort_job (struct adc_module *module_inst, enum adc_job_type type)
 Aborts an ongoing job. More...