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

Data Structures

class  PulseCounterSensor
 
struct  PulseCounterStorage
 

Typedefs

using pulse_counter_t = int16_t
 

Enumerations

enum  PulseCounterCountMode { PULSE_COUNTER_DISABLE = 0, PULSE_COUNTER_INCREMENT, PULSE_COUNTER_DECREMENT }
 

Variables

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

Typedef Documentation

◆ pulse_counter_t

Definition at line 21 of file pulse_counter_sensor.h.

Enumeration Type Documentation

◆ PulseCounterCountMode

Enumerator
PULSE_COUNTER_DISABLE 
PULSE_COUNTER_INCREMENT 
PULSE_COUNTER_DECREMENT 

Definition at line 14 of file pulse_counter_sensor.h.

Variable Documentation

◆ EDGE_MODE_TO_STRING

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

Definition at line 9 of file pulse_counter_sensor.cpp.

◆ next_pcnt_unit

pcnt_unit_t esphome::pulse_counter::next_pcnt_unit = PCNT_UNIT_0

Definition at line 164 of file pulse_counter_sensor.cpp.