ESPHome  2024.4.2
Data Structures | Enumerations | Functions | Variables
esphome::veml7700 Namespace Reference

Data Structures

union  ConfigurationRegister
 
union  PSMRegister
 
class  VEML7700Component
 

Enumerations

enum  CommandRegisters : uint8_t {
  CommandRegisters::ALS_CONF_0 = 0x00, CommandRegisters::ALS_WH = 0x01, CommandRegisters::ALS_WL = 0x02, CommandRegisters::PWR_SAVING = 0x03,
  CommandRegisters::ALS = 0x04, CommandRegisters::WHITE = 0x05, CommandRegisters::ALS_INT = 0x06
}
 
enum  Gain : uint8_t { X_1 = 0, X_2 = 1, X_1_8 = 2, X_1_4 = 3 }
 
enum  IntegrationTime : uint8_t {
  INTEGRATION_TIME_25MS = 0b1100, INTEGRATION_TIME_50MS = 0b1000, INTEGRATION_TIME_100MS = 0b0000, INTEGRATION_TIME_200MS = 0b0001,
  INTEGRATION_TIME_400MS = 0b0010, INTEGRATION_TIME_800MS = 0b0011
}
 
enum  Persistence : uint8_t { PERSISTENCE_1 = 0, PERSISTENCE_2 = 1, PERSISTENCE_4 = 2, PERSISTENCE_8 = 3 }
 
enum  PSM : uint8_t { PSM_MODE_1 = 0, PSM_MODE_2 = 1, PSM_MODE_3 = 2, PSM_MODE_4 = 3 }
 

Functions

template<typename T , size_t size>
get_next (const T(&array)[size], const T val)
 
template<typename T , size_t size>
get_prev (const T(&array)[size], const T val)
 

Variables

const uint8_t GAINS_COUNT = 4
 
const uint8_t INTEGRATION_TIMES_COUNT = 6
 

Enumeration Type Documentation

◆ CommandRegisters

enum esphome::veml7700::CommandRegisters : uint8_t
strong
Enumerator
ALS_CONF_0 
ALS_WH 
ALS_WL 
PWR_SAVING 
ALS 
WHITE 
ALS_INT 

Definition at line 17 of file veml7700.h.

◆ Gain

enum esphome::veml7700::Gain : uint8_t
Enumerator
X_1 
X_2 
X_1_8 
X_1_4 

Definition at line 27 of file veml7700.h.

◆ IntegrationTime

Enumerator
INTEGRATION_TIME_25MS 
INTEGRATION_TIME_50MS 
INTEGRATION_TIME_100MS 
INTEGRATION_TIME_200MS 
INTEGRATION_TIME_400MS 
INTEGRATION_TIME_800MS 

Definition at line 35 of file veml7700.h.

◆ Persistence

Enumerator
PERSISTENCE_1 
PERSISTENCE_2 
PERSISTENCE_4 
PERSISTENCE_8 

Definition at line 45 of file veml7700.h.

◆ PSM

enum esphome::veml7700::PSM : uint8_t
Enumerator
PSM_MODE_1 
PSM_MODE_2 
PSM_MODE_3 
PSM_MODE_4 

Definition at line 52 of file veml7700.h.

Function Documentation

◆ get_next()

template<typename T , size_t size>
T esphome::veml7700::get_next ( const T(&)  array[size],
const T  val 
)

Definition at line 13 of file veml7700.cpp.

◆ get_prev()

template<typename T , size_t size>
T esphome::veml7700::get_prev ( const T(&)  array[size],
const T  val 
)

Definition at line 28 of file veml7700.cpp.

Variable Documentation

◆ GAINS_COUNT

const uint8_t esphome::veml7700::GAINS_COUNT = 4

Definition at line 33 of file veml7700.h.

◆ INTEGRATION_TIMES_COUNT

const uint8_t esphome::veml7700::INTEGRATION_TIMES_COUNT = 6

Definition at line 43 of file veml7700.h.