ESPHome  2024.11.2
Data Structures | Enumerations
esphome::apds9306 Namespace Reference

Data Structures

class  APDS9306
 

Enumerations

enum  {
  APDS9306_MAIN_CTRL = 0x00, APDS9306_ALS_MEAS_RATE = 0x04, APDS9306_ALS_GAIN = 0x05, APDS9306_PART_ID = 0x06,
  APDS9306_MAIN_STATUS = 0x07, APDS9306_CLEAR_DATA_0 = 0x0A, APDS9306_CLEAR_DATA_1 = 0x0B, APDS9306_CLEAR_DATA_2 = 0x0C,
  APDS9306_ALS_DATA_0 = 0x0D, APDS9306_ALS_DATA_1 = 0x0E, APDS9306_ALS_DATA_2 = 0x0F, APDS9306_INT_CFG = 0x19,
  APDS9306_INT_PERSISTENCE = 0x1A, APDS9306_ALS_THRES_UP_0 = 0x21, APDS9306_ALS_THRES_UP_1 = 0x22, APDS9306_ALS_THRES_UP_2 = 0x23,
  APDS9306_ALS_THRES_LOW_0 = 0x24, APDS9306_ALS_THRES_LOW_1 = 0x25, APDS9306_ALS_THRES_LOW_2 = 0x26, APDS9306_ALS_THRES_VAR = 0x27
}
 
enum  MeasurementBitWidth : uint8_t {
  MEASUREMENT_BIT_WIDTH_20 = 0, MEASUREMENT_BIT_WIDTH_19 = 1, MEASUREMENT_BIT_WIDTH_18 = 2, MEASUREMENT_BIT_WIDTH_17 = 3,
  MEASUREMENT_BIT_WIDTH_16 = 4, MEASUREMENT_BIT_WIDTH_13 = 5
}
 
enum  MeasurementRate : uint8_t {
  MEASUREMENT_RATE_25 = 0, MEASUREMENT_RATE_50 = 1, MEASUREMENT_RATE_100 = 2, MEASUREMENT_RATE_200 = 3,
  MEASUREMENT_RATE_500 = 4, MEASUREMENT_RATE_1000 = 5, MEASUREMENT_RATE_2000 = 6
}
 
enum  AmbientLightGain : uint8_t {
  AMBIENT_LIGHT_GAIN_1 = 0, AMBIENT_LIGHT_GAIN_3 = 1, AMBIENT_LIGHT_GAIN_6 = 2, AMBIENT_LIGHT_GAIN_9 = 3,
  AMBIENT_LIGHT_GAIN_18 = 4
}
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
APDS9306_MAIN_CTRL 
APDS9306_ALS_MEAS_RATE 
APDS9306_ALS_GAIN 
APDS9306_PART_ID 
APDS9306_MAIN_STATUS 
APDS9306_CLEAR_DATA_0 
APDS9306_CLEAR_DATA_1 
APDS9306_CLEAR_DATA_2 
APDS9306_ALS_DATA_0 
APDS9306_ALS_DATA_1 
APDS9306_ALS_DATA_2 
APDS9306_INT_CFG 
APDS9306_INT_PERSISTENCE 
APDS9306_ALS_THRES_UP_0 
APDS9306_ALS_THRES_UP_1 
APDS9306_ALS_THRES_UP_2 
APDS9306_ALS_THRES_LOW_0 
APDS9306_ALS_THRES_LOW_1 
APDS9306_ALS_THRES_LOW_2 
APDS9306_ALS_THRES_VAR 

Definition at line 13 of file apds9306.cpp.

◆ AmbientLightGain

Enumerator
AMBIENT_LIGHT_GAIN_1 
AMBIENT_LIGHT_GAIN_3 
AMBIENT_LIGHT_GAIN_6 
AMBIENT_LIGHT_GAIN_9 
AMBIENT_LIGHT_GAIN_18 

Definition at line 34 of file apds9306.h.

◆ MeasurementBitWidth

Enumerator
MEASUREMENT_BIT_WIDTH_20 
MEASUREMENT_BIT_WIDTH_19 
MEASUREMENT_BIT_WIDTH_18 
MEASUREMENT_BIT_WIDTH_17 
MEASUREMENT_BIT_WIDTH_16 
MEASUREMENT_BIT_WIDTH_13 

Definition at line 13 of file apds9306.h.

◆ MeasurementRate

Enumerator
MEASUREMENT_RATE_25 
MEASUREMENT_RATE_50 
MEASUREMENT_RATE_100 
MEASUREMENT_RATE_200 
MEASUREMENT_RATE_500 
MEASUREMENT_RATE_1000 
MEASUREMENT_RATE_2000 

Definition at line 23 of file apds9306.h.