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().
void configure_opamp2 | ( | void | ) |
References opamp_config_common::analog_out, opamp2_config::config_common, system_pinmux_config::direction, system_pinmux_config::mux_position, opamp2_config::negative_input, opamp2_get_config_defaults(), OPAMP2_NEG_MUX_TAP2, OPAMP2_POS_MUX_PIN2, OPAMP2_RES1_MUX_GND, opamp2_set_config(), OPAMP_2, opamp_enable(), opamp_is_ready(), opamp_module_init(), OPAMP_POT_MUX_12R_4R, opamp2_config::positive_input, opamp_config_common::potentiometer_selection, opamp2_config::r1_connection, opamp_config_common::r1_enable, opamp_config_common::r2_out, system_pinmux_get_config_defaults(), SYSTEM_PINMUX_PIN_DIR_INPUT, and system_pinmux_pin_set_config().
Referenced by main().
int main | ( | void | ) |
struct adc_module adc_instance |
Referenced by adc_complete_callback(), and main().
uint16_t adc_result_buffer[ADC_SAMPLES] |
Referenced by main().