Microchip® Advanced Software Framework

sdadc_callback.h File Reference

SAM Sigma-Delta Analog-to-Digital Converter Driver.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

#include <sdadc.h>

Enumerations

enum  sdadc_job_type { SDADC_JOB_READ_BUFFER }
 Enum for the possible types of SDADC asynchronous jobs that may be issued to the driver. More...
 

Functions

Callback Management
void sdadc_register_callback (struct sdadc_module *const module, sdadc_callback_t callback_func, enum sdadc_callback callback_type)
 Registers a callback. More...
 
void sdadc_unregister_callback (struct sdadc_module *module, enum sdadc_callback callback_type)
 Unregisters a callback. More...
 
static void sdadc_enable_callback (struct sdadc_module *const module, enum sdadc_callback callback_type)
 Enables callback. More...
 
static void sdadc_disable_callback (struct sdadc_module *const module, enum sdadc_callback callback_type)
 Disables callback. More...
 
Job Management
enum status_code sdadc_read_buffer_job (struct sdadc_module *const module_inst, int32_t *buffer, uint16_t samples)
 Read multiple samples from SDADC. More...
 
enum status_code sdadc_get_job_status (struct sdadc_module *module_inst, enum sdadc_job_type type)
 Gets the status of a job. More...
 
void sdadc_abort_job (struct sdadc_module *module_inst, enum sdadc_job_type type)
 Aborts an ongoing job. More...