ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::as734x Namespace Reference

Data Structures

class  AS734XComponent
 
struct  ChannelContribution
 
struct  ChannelTristimulus
 
struct  ChipInfo
 Per-chip constants, stored in flash. The pointed-to tables are in flash too. More...
 
struct  RegValue
 

Enumerations

enum  Gain : uint8_t {
  GAIN_0_5X , GAIN_1X , GAIN_2X , GAIN_4X ,
  GAIN_8X , GAIN_16X , GAIN_32X , GAIN_64X ,
  GAIN_128X , GAIN_256X , GAIN_512X , GAIN_1024X ,
  GAIN_2048X
}
 
enum class  Normalization : uint8_t { NORMALIZATION_NONE , NORMALIZATION_ALL , NORMALIZATION_BANDS , NORMALIZATION_CLEAR }
 

Functions

 ESPHOME_LOG_TAG (TAG, "as734x")
 
 PROGMEM_STRING_TABLE (BandNames, "F1", "F2", "FZ", "F3", "F4", "FY", "F5", "FXL", "F6", "F7", "F8", "NIR", "Clear")
 
float tristimulus_to_cct (float x, float y, float z)
 
void tristimulus_to_rgb (float x, float y, float z, uint8_t &r, uint8_t &g, uint8_t &b)
 

Variables

const ChipInfo AS7341_CHIP
 
const ChipInfo AS7343_CHIP
 
const ChipInfo TCS3448_CHIP
 
constexpr float MIN_TRISTIMULUS_SUM = 0.001f
 

Enumeration Type Documentation

◆ Gain

enum esphome::as734x::Gain : uint8_t
Enumerator
GAIN_0_5X 
GAIN_1X 
GAIN_2X 
GAIN_4X 
GAIN_8X 
GAIN_16X 
GAIN_32X 
GAIN_64X 
GAIN_128X 
GAIN_256X 
GAIN_512X 
GAIN_1024X 
GAIN_2048X 

Definition at line 16 of file as734x.h.

◆ Normalization

enum class esphome::as734x::Normalization : uint8_t
strong
Enumerator
NORMALIZATION_NONE 
NORMALIZATION_ALL 
NORMALIZATION_BANDS 
NORMALIZATION_CLEAR 

Definition at line 39 of file as734x.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::as734x::ESPHOME_LOG_TAG ( TAG ,
"as734x"  )

◆ PROGMEM_STRING_TABLE()

esphome::as734x::PROGMEM_STRING_TABLE ( BandNames ,
"F1" ,
"F2" ,
"FZ" ,
"F3" ,
"F4" ,
"FY" ,
"F5" ,
"FXL" ,
"F6" ,
"F7" ,
"F8" ,
"NIR" ,
"Clear"  )

◆ tristimulus_to_cct()

float esphome::as734x::tristimulus_to_cct ( float x,
float y,
float z )

Definition at line 28 of file color_helpers.cpp.

◆ tristimulus_to_rgb()

void esphome::as734x::tristimulus_to_rgb ( float x,
float y,
float z,
uint8_t & r,
uint8_t & g,
uint8_t & b )

Definition at line 52 of file color_helpers.cpp.

Variable Documentation

◆ AS7341_CHIP

const ChipInfo esphome::as734x::AS7341_CHIP
extern

◆ AS7343_CHIP

const ChipInfo esphome::as734x::AS7343_CHIP
extern

◆ MIN_TRISTIMULUS_SUM

float esphome::as734x::MIN_TRISTIMULUS_SUM = 0.001f
constexpr

Definition at line 9 of file color_helpers.h.

◆ TCS3448_CHIP

const ChipInfo esphome::as734x::TCS3448_CHIP
extern