This Frequency Meter (FREQM) driver provides an interface for measure the frequency of a clock by comparing it to a known reference clock.
The following driver variants are available:
Frequency Meter Synchronous Driver: The driver supports polling for hardware changes, functionality is synchronous to the main clock of the MCU.
Frequency Meter Asynchronous Driver: The driver supports a callback handler for the IRQ caused by hardware state changes. Functionality is asynchronous to the main clock of the MCU.
The Frequency Meter driver provides means to measure the frequency or the period of the input clock signal.
The driver uses a direct method of frequency measurement, that means it counts the amount of low-to-high transitions in the input signal during a period of time. The lower the measured frequency, the longer the measurement period should be for higher accuracy.