SAM Analog Comparator Driver Quick Start.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Macros | |
#define | AC_COMPARATOR_CHANNEL AC_CHAN_CHANNEL_0 |
[setup_1] More... | |
Functions | |
void | callback_function_ac (struct ac_module *const module_inst) |
[callback_1] More... | |
void | configure_ac (void) |
[callback_3] More... | |
void | configure_ac_callback (void) |
[callback_1] More... | |
void | configure_ac_channel (void) |
[setup_7] More... | |
int | main (void) |
[setup_14] More... | |
Variables | |
static struct ac_module | ac_instance |
[setup] More... | |
bool volatile | callback_status = false |
[callback_3] More... | |
#define AC_COMPARATOR_CHANNEL AC_CHAN_CHANNEL_0 |
void callback_function_ac | ( | struct ac_module *const | module_inst | ) |
[callback_1]
[callback_2]
[callback_2]
References callback_status.
Referenced by configure_ac_callback().
void configure_ac | ( | void | ) |
[callback_3]
[setup_2]
[setup_3]
[setup_3] [setup_3]
[setup_3]
[setup_4]
[setup_4] [setup_5]
[setup_5]
[setup_6]
[setup_6]
References ac_get_config_defaults(), ac_init(), and ac_instance.
Referenced by config_ramp2c(), and main().
void configure_ac_callback | ( | void | ) |
[callback_1]
[setup_14]
[setup_15]
[setup_15] [setup_16]
[setup_16]
References AC_CALLBACK_COMPARATOR_0, ac_enable_callback(), ac_instance, ac_register_callback(), and callback_function_ac().
Referenced by main().
void configure_ac_channel | ( | void | ) |
[setup_7]
[setup_7]
[setup_7]
[setup_8]
[setup_8] [setup_9]
[setup_9]
[setup_10]
[setup_10]
[setup_11]
[setup_11]
[setup_12]
[setup_12] [setup_13]
[setup_13]
References ac_chan_enable(), ac_chan_get_config_defaults(), AC_CHAN_INTERRUPT_SELECTION_END_OF_COMPARE, AC_CHAN_MODE_SINGLE_SHOT, AC_CHAN_NEG_MUX_SCALED_VCC, AC_CHAN_POS_MUX_PIN0, AC_CHAN_POS_MUX_PIN2, ac_chan_set_config(), AC_COMPARATOR_CHANNEL, ac_instance, system_pinmux_config::direction, ac_chan_config::interrupt_selection, system_pinmux_config::mux_position, ac_chan_config::negative_input, ac_chan_config::positive_input, ac_chan_config::sample_mode, system_pinmux_get_config_defaults(), SYSTEM_PINMUX_PIN_DIR_INPUT, system_pinmux_pin_set_config(), and ac_chan_config::vcc_scale_factor.
Referenced by main().
int main | ( | void | ) |
[setup_14]
[setup]
[setup_init]
[setup_17]
[setup_17] [setup_init]
[main] [main_1]
[main_1]
[main_2]
[main_2]
[main_3]
[main_3] [main_4]
[main_4]
[main_5]
[main_5] [main_6]
[main_6] [main_7]
[main_7] [main_8]
[main_8]
[main]
References ac_chan_get_status(), AC_CHAN_STATUS_NEG_ABOVE_POS, AC_CHAN_STATUS_UNKNOWN, ac_chan_trigger_single_shot(), AC_COMPARATOR_CHANNEL, ac_enable(), ac_instance, callback_status, configure_ac(), configure_ac_callback(), configure_ac_channel(), port_pin_set_output_level(), and system_init().
|
static |
[setup]
[setup_1]
Referenced by configure_ac(), configure_ac_callback(), configure_ac_channel(), and main().
[callback_3]
Referenced by _usart_interrupt_handler(), callback_function_ac(), and main().