Microchip® Advanced Software Framework

qs_adc_basic.c File Reference

SAM ADC Quick Start.

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

#include <asf.h>

Functions

void configure_adc (void)
 [module_inst] More...
 
int main (void)
 [setup] More...
 

Variables

struct adc_module adc_instance
 [module_inst] More...
 

void configure_adc ( void  )

[module_inst]

[setup] [configure_adc]

[job_complete_callback]

[setup]

[setup_config]

[setup_config] [setup_config_defaults]

[setup_config_defaults]

[setup_set_config]

[setup_set_config]

[setup_enable]

[setup_enable]

References adc_enable(), adc_get_config_defaults(), adc_init(), and adc_instance.

Referenced by main().

int main ( void  )

[setup]

[setup_init]

[setup_init]

[main] [start_conv]

[start_conv]

[get_res]

[get_res]

[inf_loop]

[inf_loop] [main]

References adc_instance, adc_read(), adc_start_conversion(), configure_adc(), result, STATUS_BUSY, and system_init().

struct adc_module adc_instance