Microchip® Advanced Software Framework

qs_ac_callback.c File Reference

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

[setup_1]

[setup_2]

Referenced by configure_ac_channel(), and main().

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 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().

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().

struct ac_module ac_instance
static

[setup]

[setup_1]

Referenced by configure_ac(), configure_ac_callback(), configure_ac_channel(), and main().

bool volatile callback_status = false

[callback_3]

Referenced by _usart_interrupt_handler(), callback_function_ac(), and main().