|
ESPHome 2025.12.0-dev
|
Go to the source code of this file.
Data Structures | |
| class | esphome::light::ColorCapabilityHelper |
| Helper class to allow bitwise operations on ColorCapability. More... | |
| class | esphome::light::ColorModeHelper |
| Helper class to allow bitwise operations on ColorMode with ColorCapability. More... | |
| struct | esphome::light::ColorModeBitPolicy |
| Bit mapping policy for ColorMode Uses lookup table for non-contiguous enum values. More... | |
Namespaces | |
| namespace | esphome |
| Providing packet encoding functions for exchanging data with a remote host. | |
| namespace | esphome::light |
Typedefs | |
| using | esphome::light::color_mode_bitmask_t = uint16_t |
| using | esphome::light::ColorModeMask = FiniteSetMask<ColorMode, ColorModeBitPolicy> |
Enumerations | |
| enum class | esphome::light::ColorCapability : uint8_t { esphome::light::ON_OFF = 1 << 0 , esphome::light::BRIGHTNESS = 1 << 1 , esphome::light::WHITE = 1 << 2 , esphome::light::COLOR_TEMPERATURE = 1 << 3 , esphome::light::COLD_WARM_WHITE = 1 << 4 , esphome::light::RGB = 1 << 5 } |
| Color capabilities are the various outputs that a light has and that can be independently controlled by the user. More... | |
| enum class | esphome::light::ColorMode : uint8_t { esphome::light::UNKNOWN = 0 , esphome::light::ON_OFF = (uint8_t) ColorCapability::ON_OFF , esphome::light::BRIGHTNESS = (uint8_t) (ColorCapability::ON_OFF | ColorCapability::BRIGHTNESS) , esphome::light::WHITE = (uint8_t) (ColorCapability::ON_OFF | ColorCapability::BRIGHTNESS | ColorCapability::WHITE) , esphome::light::COLOR_TEMPERATURE , esphome::light::COLD_WARM_WHITE , esphome::light::RGB = (uint8_t) (ColorCapability::ON_OFF | ColorCapability::BRIGHTNESS | ColorCapability::RGB) , esphome::light::RGB_WHITE , esphome::light::RGB_COLOR_TEMPERATURE , esphome::light::RGB_COLD_WARM_WHITE } |
| Color modes are a combination of color capabilities that can be used at the same time. More... | |
Variables | |
| constexpr ColorMode | esphome::light::COLOR_MODE_LOOKUP [] |
| constexpr int | esphome::light::COLOR_CAPABILITY_COUNT = 6 |
| constexpr uint16_t | esphome::light::CAPABILITY_BITMASKS [] |
| Compile-time lookup table mapping ColorCapability to bitmask This array is computed at compile time using constexpr. | |