Microchip® Advanced Software Framework

qs_freqm_callback.c File Reference

SAM Frequency Meter Driver Quick Start.

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

#include <asf.h>

Functions

void configure_freqm (void)
 [callback_2] More...
 
void configure_freqm_callback (void)
 [callback_1] More...
 
void freqm_complete_callback (void)
 [callback_1] More...
 
int main (void)
 [setup_3] [setup] More...
 

Variables

static struct freqm_module freqm_instance
 [setup_1] More...
 
bool volatile freqm_read_done = false
 [setup] More...
 

void configure_freqm ( void  )

[callback_2]

[setup_1]

[setup_2] [setup_2]

[setup_2_1]

[setup_2_1] [setup_2_2]

[setup_2_2]

[setup_2_3]

[setup_2_3]

void configure_freqm_callback ( void  )

[callback_1]

[setup_3]

[setup_3_1]

[setup_3_1] [setup_3_2]

[setup_3_2]

References FREQM_CALLBACK_MEASURE_DONE, freqm_complete_callback(), freqm_enable_callback(), freqm_instance, and freqm_register_callback().

Referenced by main().

void freqm_complete_callback ( void  )

[callback_1]

[callback_1_1]

[callback_1_1]

References freqm_read_done.

Referenced by configure_freqm_callback(), and run_freqm_callback_read_test().

int main ( void  )

[setup_3] [setup]

[setup_init]

[setup_init_1]

[setup_init_1] [setup_init]

[main]

[main_1]

[main_1]

[main_2]

[main_2]

[main_3]

[main_3] [main_4]

[main_4]

[main]

References Assert, configure_freqm(), configure_freqm_callback(), freqm_clear_overflow(), freqm_enable(), freqm_get_result_value(), freqm_instance, freqm_read_done, freqm_start_measure(), FREQM_STATUS_CNT_OVERFLOW, FREQM_STATUS_MEASURE_DONE, and system_init().

struct freqm_module freqm_instance
static

[setup_1]

bool volatile freqm_read_done = false

[setup]

[callback_2]

Referenced by freqm_complete_callback(), and main().