Microchip® Advanced Software Framework

qs_adc_callback.c File Reference

SAM ADC Quick Start.

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

#include <asf.h>

Macros

#define ADC_SAMPLES   128
 [result_buffer] More...
 

Functions

void adc_complete_callback (struct adc_module *const module)
 
void configure_adc (void)
 [job_complete_callback] More...
 
void configure_adc_callbacks (void)
 
int main (void)
 [setup] More...
 

Variables

struct adc_module adc_instance
 [result_buffer] More...
 
volatile bool adc_read_done = false
 [module_inst] More...
 
uint16_t adc_result_buffer [ADC_SAMPLES]
 

#define ADC_SAMPLES   128

[result_buffer]

Referenced by main().

void adc_complete_callback ( struct adc_module *const  module)
void configure_adc ( void  )

[job_complete_callback]

[setup]

[setup_config]

[setup_config] [setup_config_defaults]

[setup_config_defaults]

[setup_modify_conf]

[setup_modify_conf]

[setup_set_config]

[setup_set_config]

[setup_enable]

[setup_enable]

void configure_adc_callbacks ( void  )

[setup_register_callback]

[setup_register_callback] [setup_enable_callback]

[setup_enable_callback]

int main ( void  )

[setup]

[setup_init]

[setup_init]

[main] [enable_global_interrupts]

[enable_global_interrupts]

[start_adc_job]

[start_adc_job]

[job_complete_poll]

[job_complete_poll]

[inf_loop]

[inf_loop] [main]

References adc_instance, adc_read_buffer_job(), adc_read_done, adc_result_buffer, ADC_SAMPLES, configure_adc(), configure_adc_callbacks(), system_init(), and system_interrupt_enable_global().

struct adc_module adc_instance

[result_buffer]

[module_inst]

volatile bool adc_read_done = false

[module_inst]

[job_complete_callback]

uint16_t adc_result_buffer[ADC_SAMPLES]