Frequency Meter driver for SAM4L.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
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... | |
void FREQM_Handler | ( | void | ) |
Interrupt handler for FREQM.
References freqm_get_interrupt_mask(), freqm_get_interrupt_status(), FREQM_INTERRUPT_MEASURMENT_READY, FREQM_INTERRUPT_REFERENCE_CLOCK_READY, and status.
struct freqm_dev_inst* _freqm_instance |
freqm_callback_t freqm_callback[FREQM_INTERRUPT_SOURCE_N] |
FREQM callback function pointer array.