ESPHome
2024.11.1
|
#include <pulse_counter_sensor.h>
Public Member Functions | |
bool | pulse_counter_setup (InternalGPIOPin *pin) override |
pulse_counter_t | read_raw_value () override |
Static Public Member Functions | |
static void | gpio_intr (BasicPulseCounterStorage *arg) |
Data Fields | |
volatile pulse_counter_t | counter {0} |
volatile uint32_t | last_pulse {0} |
ISRInternalGPIOPin | isr_pin |
Data Fields inherited from esphome::pulse_counter::PulseCounterStorageBase | |
InternalGPIOPin * | pin |
PulseCounterCountMode | rising_edge_mode {PULSE_COUNTER_INCREMENT} |
PulseCounterCountMode | falling_edge_mode {PULSE_COUNTER_DISABLE} |
uint32_t | filter_us {0} |
pulse_counter_t | last_value {0} |
Definition at line 40 of file pulse_counter_sensor.h.
|
static |
Definition at line 20 of file pulse_counter_sensor.cpp.
|
overridevirtual |
Implements esphome::pulse_counter::PulseCounterStorageBase.
Definition at line 39 of file pulse_counter_sensor.cpp.
|
overridevirtual |
Implements esphome::pulse_counter::PulseCounterStorageBase.
Definition at line 46 of file pulse_counter_sensor.cpp.
volatile pulse_counter_t esphome::pulse_counter::BasicPulseCounterStorage::counter {0} |
Definition at line 46 of file pulse_counter_sensor.h.
ISRInternalGPIOPin esphome::pulse_counter::BasicPulseCounterStorage::isr_pin |
Definition at line 49 of file pulse_counter_sensor.h.
volatile uint32_t esphome::pulse_counter::BasicPulseCounterStorage::last_pulse {0} |
Definition at line 47 of file pulse_counter_sensor.h.