Microchip® Advanced Software Framework

freqm_callback.c 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 "freqm.h"
#include "freqm_callback.h"

Macros

#define FREQM_CALLBACK_TYPE_NUM   1
 

Functions

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

Variables

struct freqm_module_freqm_instance
 

#define FREQM_CALLBACK_TYPE_NUM   1

Max number of callback type.

Referenced by freqm_register_callback(), and freqm_unregister_callback().

void FREQM_Handler ( void  )

The FREQM interrupt handler.

References _freqm_instance, and FREQM_CALLBACK_MEASURE_DONE.