ESPHome  2024.11.0
Data Structures | Namespaces | Enumerations | Functions | Variables
switch.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::switch_::Switch
 Base class for all switches. More...
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::switch_
 

Enumerations

enum  esphome::switch_::SwitchRestoreMode {
  esphome::switch_::SWITCH_ALWAYS_OFF = !RESTORE_MODE_ON_MASK, esphome::switch_::SWITCH_ALWAYS_ON = RESTORE_MODE_ON_MASK, esphome::switch_::SWITCH_RESTORE_DEFAULT_OFF = RESTORE_MODE_PERSISTENT_MASK, esphome::switch_::SWITCH_RESTORE_DEFAULT_ON = RESTORE_MODE_PERSISTENT_MASK | RESTORE_MODE_ON_MASK,
  esphome::switch_::SWITCH_RESTORE_INVERTED_DEFAULT_OFF = RESTORE_MODE_PERSISTENT_MASK | RESTORE_MODE_INVERTED_MASK, esphome::switch_::SWITCH_RESTORE_INVERTED_DEFAULT_ON = RESTORE_MODE_PERSISTENT_MASK | RESTORE_MODE_INVERTED_MASK | RESTORE_MODE_ON_MASK, esphome::switch_::SWITCH_RESTORE_DISABLED = RESTORE_MODE_DISABLED_MASK
}
 

Functions

void esphome::switch_::log_switch (const char *tag, const char *prefix, const char *type, Switch *obj)
 

Variables

const int esphome::switch_::RESTORE_MODE_ON_MASK = 0x01
 
const int esphome::switch_::RESTORE_MODE_PERSISTENT_MASK = 0x02
 
const int esphome::switch_::RESTORE_MODE_INVERTED_MASK = 0x04
 
const int esphome::switch_::RESTORE_MODE_DISABLED_MASK = 0x08