ESPHome  2024.4.0
Data Structures | Typedefs | Enumerations | Functions | Variables
esphome::pulse_counter Namespace Reference

Data Structures

struct  BasicPulseCounterStorage
 
struct  HwPulseCounterStorage
 
class  PulseCounterSensor
 
struct  PulseCounterStorageBase
 
class  SetTotalPulsesAction
 

Typedefs

using pulse_counter_t = int16_t
 

Enumerations

enum  PulseCounterCountMode { PULSE_COUNTER_DISABLE = 0, PULSE_COUNTER_INCREMENT, PULSE_COUNTER_DECREMENT }
 

Functions

PulseCounterStorageBaseget_storage (bool hw_pcnt)
 

Variables

const char *const EDGE_MODE_TO_STRING [] = {"DISABLE", "INCREMENT", "DECREMENT"}
 

Typedef Documentation

◆ pulse_counter_t

Definition at line 24 of file pulse_counter_sensor.h.

Enumeration Type Documentation

◆ PulseCounterCountMode

Enumerator
PULSE_COUNTER_DISABLE 
PULSE_COUNTER_INCREMENT 
PULSE_COUNTER_DECREMENT 

Definition at line 17 of file pulse_counter_sensor.h.

Function Documentation

◆ get_storage()

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

Definition at line 12 of file pulse_counter_sensor.cpp.

Variable Documentation

◆ EDGE_MODE_TO_STRING

const char* const esphome::pulse_counter::EDGE_MODE_TO_STRING[] = {"DISABLE", "INCREMENT", "DECREMENT"}

Definition at line 9 of file pulse_counter_sensor.cpp.