ESPHome  2022.9.1
Public Member Functions | Data Fields
esphome::light::ESPHSVColor Struct Reference

#include <esp_hsv_color.h>

Public Member Functions

 ESPHSVColor () ALWAYS_INLINE
 
 ESPHSVColor (uint8_t hue, uint8_t saturation, uint8_t value) ALWAYS_INLINE
 
Color to_rgb () const
 

Data Fields

union {
   struct {
      union {
         uint8_t   hue
 
         uint8_t   h
 
      } 
 
      union {
         uint8_t   saturation
 
         uint8_t   s
 
      } 
 
      union {
         uint8_t   value
 
         uint8_t   v
 
      } 
 
   } 
 
   uint8_t   raw [3]
 
}; 
 

Detailed Description

Definition at line 9 of file esp_hsv_color.h.

Constructor & Destructor Documentation

◆ ESPHSVColor() [1/2]

esphome::light::ESPHSVColor::ESPHSVColor ( )
inline

Definition at line 27 of file esp_hsv_color.h.

◆ ESPHSVColor() [2/2]

esphome::light::ESPHSVColor::ESPHSVColor ( uint8_t  hue,
uint8_t  saturation,
uint8_t  value 
)
inline

Definition at line 29 of file esp_hsv_color.h.

Member Function Documentation

◆ to_rgb()

Color esphome::light::ESPHSVColor::to_rgb ( ) const

Definition at line 6 of file esp_hsv_color.cpp.

Field Documentation

◆ @64

union { ... }

◆ h

uint8_t esphome::light::ESPHSVColor::h

Definition at line 14 of file esp_hsv_color.h.

◆ hue

uint8_t esphome::light::ESPHSVColor::hue

Definition at line 13 of file esp_hsv_color.h.

◆ raw

uint8_t esphome::light::ESPHSVColor::raw[3]

Definition at line 25 of file esp_hsv_color.h.

◆ s

uint8_t esphome::light::ESPHSVColor::s

Definition at line 18 of file esp_hsv_color.h.

◆ saturation

uint8_t esphome::light::ESPHSVColor::saturation

Definition at line 17 of file esp_hsv_color.h.

◆ v

uint8_t esphome::light::ESPHSVColor::v

Definition at line 22 of file esp_hsv_color.h.

◆ value

uint8_t esphome::light::ESPHSVColor::value

Definition at line 21 of file esp_hsv_color.h.


The documentation for this struct was generated from the following files: