ESPHome  2024.11.2
Public Member Functions | Data Fields
esphome::pulse_counter::PulseCounterStorageBase Struct Referenceabstract

#include <pulse_counter_sensor.h>

Inheritance diagram for esphome::pulse_counter::PulseCounterStorageBase:
esphome::pulse_counter::BasicPulseCounterStorage esphome::pulse_counter::HwPulseCounterStorage

Public Member Functions

virtual bool pulse_counter_setup (InternalGPIOPin *pin)=0
 
virtual pulse_counter_t read_raw_value ()=0
 

Data Fields

InternalGPIOPinpin
 
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}
 

Detailed Description

Definition at line 29 of file pulse_counter_sensor.h.

Member Function Documentation

◆ pulse_counter_setup()

virtual bool esphome::pulse_counter::PulseCounterStorageBase::pulse_counter_setup ( InternalGPIOPin pin)
pure virtual

◆ read_raw_value()

virtual pulse_counter_t esphome::pulse_counter::PulseCounterStorageBase::read_raw_value ( )
pure virtual

Field Documentation

◆ falling_edge_mode

PulseCounterCountMode esphome::pulse_counter::PulseCounterStorageBase::falling_edge_mode {PULSE_COUNTER_DISABLE}

Definition at line 35 of file pulse_counter_sensor.h.

◆ filter_us

uint32_t esphome::pulse_counter::PulseCounterStorageBase::filter_us {0}

Definition at line 36 of file pulse_counter_sensor.h.

◆ last_value

pulse_counter_t esphome::pulse_counter::PulseCounterStorageBase::last_value {0}

Definition at line 37 of file pulse_counter_sensor.h.

◆ pin

InternalGPIOPin* esphome::pulse_counter::PulseCounterStorageBase::pin

Definition at line 33 of file pulse_counter_sensor.h.

◆ rising_edge_mode

PulseCounterCountMode esphome::pulse_counter::PulseCounterStorageBase::rising_edge_mode {PULSE_COUNTER_INCREMENT}

Definition at line 34 of file pulse_counter_sensor.h.


The documentation for this struct was generated from the following file: