esp32-freqcount
ESP32-compatible C library for ESP32-freqcount component.
|
Example application for the ESP32 Frequency Counter component. More...
#include <stdint.h>
#include "driver/pcnt.h"
#include "driver/rmt.h"
Go to the source code of this file.
Data Structures | |
struct | frequency_count_configuration_t |
Functions | |
void | frequency_count_task_function (void *pvParameter) |
Task function - pass this to xTaskCreate with a pointer to an instance of frequency_count_configuration_t as the parameter. | |
Example application for the ESP32 Frequency Counter component.
An accurate sampling window signal is created by the RMT component, during which time a Pulse Counter counts both rising and falling edges of the signal of interest.
To connect the RMT window output to the PCNT enable, a GPIO must be used. This is set by rmt_gpio. It should not be used for any external purposes.
Usage:
TODO: