Microchip® Advanced Software Framework

qs_ac_basic.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 configure_ac (void)
 [setup_2] More...
 
void configure_ac_channel (void)
 [setup_7] More...
 
int main (void)
 [setup] More...
 

Variables

static struct ac_module ac_instance
 [setup] More...
 

#define AC_COMPARATOR_CHANNEL   AC_CHAN_CHANNEL_0

[setup_1]

[setup_2]

Referenced by main().

void configure_ac ( void  )

[setup_2]

[setup_3] [setup_3]

[setup_4]

[setup_4] [setup_5]

[setup_5]

[setup_6]

[setup_6]

void configure_ac_channel ( void  )

[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]

int main ( void  )

[setup]

[setup_init]

[setup_14]

[setup_14] [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]

References ac_chan_get_status(), ac_chan_is_ready(), AC_CHAN_STATUS_NEG_ABOVE_POS, AC_CHAN_STATUS_UNKNOWN, ac_chan_trigger_single_shot(), AC_COMPARATOR_CHANNEL, ac_enable(), ac_instance, configure_ac(), configure_ac_channel(), port_pin_set_output_level(), and system_init().

struct ac_module ac_instance
static

[setup]

[setup_1]

Referenced by main().