Microchip® Advanced Software Framework

adc_callback.c File Reference

SAM Peripheral Analog-to-Digital Converter Driver.

Copyright (c) 2012-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 void _adc_interrupt_handler ( const uint8_t  instance)
static
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().