Microchip® Advanced Software Framework

sam0/applications/opamp_adc_gain/main.c File Reference

SAM L21 OPAMP as ADC Gain Amplifier.

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

#include <asf.h>
#include "conf_example.h"

Macros

#define ADC_SAMPLES   128
 

Functions

void adc_complete_callback (struct adc_module *const module)
 
void configure_adc (void)
 
void configure_adc_callbacks (void)
 
void configure_opamp2 (void)
 
int main (void)
 

Variables

struct adc_module adc_instance
 
volatile bool adc_read_done = false
 
uint16_t adc_result_buffer [ADC_SAMPLES]
 

#define ADC_SAMPLES   128

Referenced by main().

void adc_complete_callback ( struct adc_module *const  module)

References adc_read_done.

Referenced by configure_adc_callbacks().

void configure_adc ( void  )
void configure_adc_callbacks ( void  )

[setup_register_callback]

[setup_register_callback] [setup_enable_callback]

[setup_enable_callback]

References ADC_CALLBACK_READ_BUFFER, adc_complete_callback(), adc_enable_callback(), adc_instance, and adc_register_callback().

Referenced by main().

struct adc_module adc_instance
volatile bool adc_read_done = false

Referenced by adc_complete_callback(), and main().

uint16_t adc_result_buffer[ADC_SAMPLES]

Referenced by main().