Microchip® Advanced Software Framework

freqm_callback.h File Reference

SAM Frequency Meter driver.

This file defines a useful set of functions for the FREQM on SAM devices.

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

#include <compiler.h>
#include <system_interrupt.h>

Enumerations

enum  freqm_callback_type { FREQM_CALLBACK_MEASURE_DONE = 0 }
 FREQM callback type. More...
 

Functions

Callback Configuration and Initialization
enum status_code freqm_register_callback (struct freqm_module *const module, freqm_callback_t callback_func, enum freqm_callback callback_type)
 Registers a callback. More...
 
enum status_code freqm_unregister_callback (struct freqm_module *module, enum freqm_callback callback_type)
 Unregisters a callback. More...
 
Callback Enabling and Disabling
static enum status_code freqm_enable_callback (struct freqm_module *const module, const enum freqm_callback_type type)
 Enable an FREQM callback. More...
 
static enum status_code freqm_disable_callback (struct freqm_module *const module, const enum freqm_callback_type type)
 Disable an FREQM callback. More...