Microchip® Advanced Software Framework

freqm.c File Reference

Frequency Meter driver for SAM4L.

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

#include "freqm.h"
#include "sysclk.h"
#include "sleepmgr.h"

Functions

enum status_code freqm_disable (struct freqm_dev_inst *const dev_inst)
 Disable FREQM. More...
 
void freqm_enable (struct freqm_dev_inst *const dev_inst)
 Enable FEQM. More...
 
void freqm_get_config_defaults (struct freqm_config *const cfg)
 Initializes Frequency Meter configuration structure to defaults. More...
 
enum status_code freqm_get_result_blocking (struct freqm_dev_inst *const dev_inst, uint32_t *p_result)
 Get measurement result. More...
 
void FREQM_Handler (void)
 Interrupt handler for FREQM. More...
 
enum status_code freqm_init (struct freqm_dev_inst *const dev_inst, Freqm *const freqm, struct freqm_config *const cfg)
 Configure FREQM with specified value. More...
 
void freqm_set_callback (struct freqm_dev_inst *const dev_inst, freqm_interrupt_source_t source, freqm_callback_t callback, uint8_t irq_level)
 Set callback for FREQM interrupt handler. More...
 

Variables

struct freqm_dev_inst_freqm_instance
 
freqm_callback_t freqm_callback [FREQM_INTERRUPT_SOURCE_N]
 FREQM callback function pointer array. More...
 

struct freqm_dev_inst* _freqm_instance

FREQM callback function pointer array.