ESPHome  2024.5.4
Public Member Functions | Data Fields
esphome::pulse_counter::HwPulseCounterStorage Struct Reference

#include <pulse_counter_sensor.h>

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

Public Member Functions

bool pulse_counter_setup (InternalGPIOPin *pin) override
 
pulse_counter_t read_raw_value () override
 

Data Fields

pcnt_unit_t pcnt_unit
 
- Data Fields inherited from esphome::pulse_counter::PulseCounterStorageBase
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 53 of file pulse_counter_sensor.h.

Member Function Documentation

◆ pulse_counter_setup()

bool esphome::pulse_counter::HwPulseCounterStorage::pulse_counter_setup ( InternalGPIOPin pin)
overridevirtual

◆ read_raw_value()

pulse_counter_t esphome::pulse_counter::HwPulseCounterStorage::read_raw_value ( )
overridevirtual

Field Documentation

◆ pcnt_unit

pcnt_unit_t esphome::pulse_counter::HwPulseCounterStorage::pcnt_unit

Definition at line 57 of file pulse_counter_sensor.h.


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