ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::pulse_counter Namespace Reference

Data Structures

struct  BasicPulseCounterStorage
 
struct  HwPulseCounterStorage
 
class  PulseCounterSensor
 
struct  PulseCounterStorageBase
 

Typedefs

using pulse_counter_t = int32_t
 

Enumerations

enum  PulseCounterCountMode { PULSE_COUNTER_DISABLE = 0 , PULSE_COUNTER_INCREMENT , PULSE_COUNTER_DECREMENT }
 

Functions

 ESPHOME_LOG_TAG (TAG, "pulse_counter")
 
 PROGMEM_STRING_TABLE (EdgeModeStrings, "DISABLE", "INCREMENT", "DECREMENT")
 
PulseCounterStorageBase * get_storage (bool hw_pcnt)
 

Typedef Documentation

◆ pulse_counter_t

Definition at line 25 of file pulse_counter_sensor.h.

Enumeration Type Documentation

◆ PulseCounterCountMode

Enumerator
PULSE_COUNTER_DISABLE 
PULSE_COUNTER_INCREMENT 
PULSE_COUNTER_DECREMENT 

Definition at line 19 of file pulse_counter_sensor.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::pulse_counter::ESPHOME_LOG_TAG ( TAG ,
"pulse_counter"  )

◆ get_storage()

PulseCounterStorageBase * esphome::pulse_counter::get_storage ( bool hw_pcnt)

Definition at line 18 of file pulse_counter_sensor.cpp.

◆ PROGMEM_STRING_TABLE()

esphome::pulse_counter::PROGMEM_STRING_TABLE ( EdgeModeStrings ,
"DISABLE" ,
"INCREMENT" ,
"DECREMENT"  )