ESPHome
2024.11.0
|
Go to the source code of this file.
Data Structures | |
class | esphome::fan::FanCall |
struct | esphome::fan::FanRestoreState |
class | esphome::fan::Fan |
Namespaces | |
esphome | |
Implementation of SPI Controller mode. | |
esphome::fan | |
Enumerations | |
enum | esphome::fan::FanDirection { esphome::fan::FanDirection::FORWARD = 0, esphome::fan::FanDirection::REVERSE = 1 } |
Simple enum to represent the direction of a fan. More... | |
enum | esphome::fan::FanRestoreMode { esphome::fan::FanRestoreMode::NO_RESTORE, esphome::fan::FanRestoreMode::ALWAYS_OFF, esphome::fan::FanRestoreMode::ALWAYS_ON, esphome::fan::FanRestoreMode::RESTORE_DEFAULT_OFF, esphome::fan::FanRestoreMode::RESTORE_DEFAULT_ON, esphome::fan::FanRestoreMode::RESTORE_INVERTED_DEFAULT_OFF, esphome::fan::FanRestoreMode::RESTORE_INVERTED_DEFAULT_ON } |
Restore mode of a fan. More... | |
Functions | |
const LogString * | esphome::fan::fan_direction_to_string (FanDirection direction) |
struct esphome::fan::FanRestoreState | esphome::fan::__attribute__ ((packed)) |
FanCall | to_call (Fan &fan) |
Convert this struct to a fan call that can be performed. More... | |
void | apply (Fan &fan) |
Apply these settings to the fan. More... | |
Variables | |
bool | state |
int | speed |
bool | oscillating |
FanDirection | direction |
uint8_t | preset_mode |
esphome::fan::Fan | esphome::fan::__attribute__ |
void __attribute__::apply | ( | Fan & | fan | ) |
Apply these settings to the fan.
FanCall __attribute__::to_call | ( | Fan & | fan | ) |
Convert this struct to a fan call that can be performed.