ESPHome  2024.12.0
Data Structures | Namespaces | Enumerations | Variables
ltr_definitions.h File Reference

Go to the source code of this file.

Data Structures

union  esphome::ltr_als_ps::AlsControlRegister
 
union  esphome::ltr_als_ps::PsControlRegister
 
union  esphome::ltr_als_ps::PsLedRegister
 
union  esphome::ltr_als_ps::PsNPulsesRegister
 
union  esphome::ltr_als_ps::PsMeasurementRateRegister
 
union  esphome::ltr_als_ps::MeasurementRateRegister
 
union  esphome::ltr_als_ps::PartIdRegister
 
union  esphome::ltr_als_ps::AlsPsStatusRegister
 
union  esphome::ltr_als_ps::PsData1Register
 
union  esphome::ltr_als_ps::InterruptRegister
 
union  esphome::ltr_als_ps::InterruptPersistRegister
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::ltr_als_ps
 

Enumerations

enum  esphome::ltr_als_ps::CommandRegisters : uint8_t {
  esphome::ltr_als_ps::CommandRegisters::ALS_CONTR = 0x80, esphome::ltr_als_ps::CommandRegisters::PS_CONTR = 0x81, esphome::ltr_als_ps::CommandRegisters::PS_LED = 0x82, esphome::ltr_als_ps::CommandRegisters::PS_N_PULSES = 0x83,
  esphome::ltr_als_ps::CommandRegisters::PS_MEAS_RATE = 0x84, esphome::ltr_als_ps::CommandRegisters::MEAS_RATE = 0x85, esphome::ltr_als_ps::CommandRegisters::PART_ID = 0x86, esphome::ltr_als_ps::CommandRegisters::MANUFAC_ID = 0x87,
  esphome::ltr_als_ps::CommandRegisters::ALS_DATA_CH1_0 = 0x88, esphome::ltr_als_ps::CommandRegisters::ALS_DATA_CH1_1 = 0x89, esphome::ltr_als_ps::CommandRegisters::ALS_DATA_CH0_0 = 0x8A, esphome::ltr_als_ps::CommandRegisters::ALS_DATA_CH0_1 = 0x8B,
  esphome::ltr_als_ps::CommandRegisters::ALS_PS_STATUS = 0x8C, esphome::ltr_als_ps::CommandRegisters::PS_DATA_0 = 0x8D, esphome::ltr_als_ps::CommandRegisters::PS_DATA_1 = 0x8E, esphome::ltr_als_ps::CommandRegisters::ALS_PS_INTERRUPT = 0x8F,
  esphome::ltr_als_ps::CommandRegisters::PS_THRES_UP_0 = 0x90, esphome::ltr_als_ps::CommandRegisters::PS_THRES_UP_1 = 0x91, esphome::ltr_als_ps::CommandRegisters::PS_THRES_LOW_0 = 0x92, esphome::ltr_als_ps::CommandRegisters::PS_THRES_LOW_1 = 0x93,
  esphome::ltr_als_ps::CommandRegisters::PS_OFFSET_1 = 0x94, esphome::ltr_als_ps::CommandRegisters::PS_OFFSET_0 = 0x95, esphome::ltr_als_ps::CommandRegisters::ALS_THRES_UP_0 = 0x97, esphome::ltr_als_ps::CommandRegisters::ALS_THRES_UP_1 = 0x98,
  esphome::ltr_als_ps::CommandRegisters::ALS_THRES_LOW_0 = 0x99, esphome::ltr_als_ps::CommandRegisters::ALS_THRES_LOW_1 = 0x9A, esphome::ltr_als_ps::CommandRegisters::INTERRUPT_PERSIST = 0x9E
}
 
enum  esphome::ltr_als_ps::AlsGain : uint8_t {
  esphome::ltr_als_ps::GAIN_1 = 0, esphome::ltr_als_ps::GAIN_2 = 1, esphome::ltr_als_ps::GAIN_4 = 2, esphome::ltr_als_ps::GAIN_8 = 3,
  esphome::ltr_als_ps::GAIN_48 = 6, esphome::ltr_als_ps::GAIN_96 = 7
}
 
enum  esphome::ltr_als_ps::IntegrationTime : uint8_t {
  esphome::ltr_als_ps::INTEGRATION_TIME_100MS = 0, esphome::ltr_als_ps::INTEGRATION_TIME_50MS = 1, esphome::ltr_als_ps::INTEGRATION_TIME_200MS = 2, esphome::ltr_als_ps::INTEGRATION_TIME_400MS = 3,
  esphome::ltr_als_ps::INTEGRATION_TIME_150MS = 4, esphome::ltr_als_ps::INTEGRATION_TIME_250MS = 5, esphome::ltr_als_ps::INTEGRATION_TIME_300MS = 6, esphome::ltr_als_ps::INTEGRATION_TIME_350MS = 7
}
 
enum  esphome::ltr_als_ps::MeasurementRepeatRate {
  esphome::ltr_als_ps::REPEAT_RATE_50MS = 0, esphome::ltr_als_ps::REPEAT_RATE_100MS = 1, esphome::ltr_als_ps::REPEAT_RATE_200MS = 2, esphome::ltr_als_ps::REPEAT_RATE_500MS = 3,
  esphome::ltr_als_ps::REPEAT_RATE_1000MS = 4, esphome::ltr_als_ps::REPEAT_RATE_2000MS = 5
}
 
enum  esphome::ltr_als_ps::PsGain : uint8_t { esphome::ltr_als_ps::PS_GAIN_16 = 0, esphome::ltr_als_ps::PS_GAIN_32 = 2, esphome::ltr_als_ps::PS_GAIN_64 = 3 }
 
enum  esphome::ltr_als_ps::PsMode : uint8_t { esphome::ltr_als_ps::PS_MODE_STANDBY_00 = 0, esphome::ltr_als_ps::PS_MODE_STANDBY_01 = 1, esphome::ltr_als_ps::PS_MODE_ACTIVE_10 = 2, esphome::ltr_als_ps::PS_MODE_ACTIVE_11 = 3 }
 
enum  esphome::ltr_als_ps::PsLedFreq : uint8_t {
  esphome::ltr_als_ps::PS_LED_FREQ_30KHZ = 0, esphome::ltr_als_ps::PS_LED_FREQ_40KHZ = 1, esphome::ltr_als_ps::PS_LED_FREQ_50KHZ = 2, esphome::ltr_als_ps::PS_LED_FREQ_60KHZ = 3,
  esphome::ltr_als_ps::PS_LED_FREQ_70KHZ = 4, esphome::ltr_als_ps::PS_LED_FREQ_80KHZ = 5, esphome::ltr_als_ps::PS_LED_FREQ_90KHZ = 6, esphome::ltr_als_ps::PS_LED_FREQ_100KHZ = 7
}
 
enum  esphome::ltr_als_ps::PsLedDuty : uint8_t { esphome::ltr_als_ps::PS_LED_DUTY_25 = 0, esphome::ltr_als_ps::PS_LED_DUTY_50 = 1, esphome::ltr_als_ps::PS_LED_DUTY_75 = 2, esphome::ltr_als_ps::PS_LED_DUTY_100 = 3 }
 
enum  esphome::ltr_als_ps::PsLedCurrent : uint8_t {
  esphome::ltr_als_ps::PS_LED_CURRENT_5MA = 0, esphome::ltr_als_ps::PS_LED_CURRENT_10MA = 1, esphome::ltr_als_ps::PS_LED_CURRENT_20MA = 2, esphome::ltr_als_ps::PS_LED_CURRENT_50MA = 3,
  esphome::ltr_als_ps::PS_LED_CURRENT_100MA = 4, esphome::ltr_als_ps::PS_LED_CURRENT_100MA1 = 5, esphome::ltr_als_ps::PS_LED_CURRENT_100MA2 = 6, esphome::ltr_als_ps::PS_LED_CURRENT_100MA3 = 7
}
 
enum  esphome::ltr_als_ps::PsMeasurementRate : uint8_t {
  esphome::ltr_als_ps::PS_MEAS_RATE_50MS = 0, esphome::ltr_als_ps::PS_MEAS_RATE_70MS = 1, esphome::ltr_als_ps::PS_MEAS_RATE_100MS = 2, esphome::ltr_als_ps::PS_MEAS_RATE_200MS = 3,
  esphome::ltr_als_ps::PS_MEAS_RATE_500MS = 4, esphome::ltr_als_ps::PS_MEAS_RATE_1000MS = 5, esphome::ltr_als_ps::PS_MEAS_RATE_2000MS = 6, esphome::ltr_als_ps::PS_MEAS_RATE_2000MS1 = 7,
  esphome::ltr_als_ps::PS_MEAS_RATE_10MS = 8
}
 

Variables

bool active_mode
 
bool sw_reset
 
AlsGain gain
 
uint8_t reserved
 
bool ps_mode_xxx
 
bool ps_mode_active
 
PsGain ps_gain
 
bool reserved_4
 
bool ps_saturation_indicator_enable
 
bool reserved_6
 
bool reserved_7
 
PsLedCurrent ps_led_current
 
PsLedDuty ps_led_duty
 
PsLedFreq ps_led_freq
 
uint8_t number_of_pulses
 
PsMeasurementRate ps_measurement_rate
 
MeasurementRepeatRate measurement_repeat_rate
 
IntegrationTime integration_time
 
uint8_t part_number_id
 
uint8_t revision_id
 
bool ps_new_data
 
bool ps_interrupt
 
bool als_new_data
 
bool als_interrupt
 
bool data_invalid
 
uint8_t ps_data_high
 
bool ps_saturation_flag
 
bool interrupt_polarity
 
uint8_t als_persist
 
uint8_t ps_persist
 

Variable Documentation

◆ active_mode

bool active_mode

Definition at line 141 of file ltr_definitions.h.

◆ als_interrupt

bool als_interrupt

Definition at line 231 of file ltr_definitions.h.

◆ als_new_data

bool als_new_data

Definition at line 230 of file ltr_definitions.h.

◆ als_persist

uint8_t als_persist

Definition at line 268 of file ltr_definitions.h.

◆ data_invalid

bool data_invalid

Definition at line 233 of file ltr_definitions.h.

◆ gain

AlsGain gain

Definition at line 143 of file ltr_definitions.h.

◆ integration_time

IntegrationTime integration_time

Definition at line 205 of file ltr_definitions.h.

◆ interrupt_polarity

bool interrupt_polarity

Definition at line 257 of file ltr_definitions.h.

◆ measurement_repeat_rate

MeasurementRepeatRate measurement_repeat_rate

Definition at line 204 of file ltr_definitions.h.

◆ number_of_pulses

uint8_t number_of_pulses

Definition at line 182 of file ltr_definitions.h.

◆ part_number_id

uint8_t part_number_id

Definition at line 217 of file ltr_definitions.h.

◆ ps_data_high

uint8_t ps_data_high

Definition at line 243 of file ltr_definitions.h.

◆ ps_gain

PsGain ps_gain

Definition at line 156 of file ltr_definitions.h.

◆ ps_interrupt

bool ps_interrupt

Definition at line 229 of file ltr_definitions.h.

◆ ps_led_current

PsLedCurrent ps_led_current

Definition at line 170 of file ltr_definitions.h.

◆ ps_led_duty

PsLedDuty ps_led_duty

Definition at line 171 of file ltr_definitions.h.

◆ ps_led_freq

PsLedFreq ps_led_freq

Definition at line 172 of file ltr_definitions.h.

◆ ps_measurement_rate

PsMeasurementRate ps_measurement_rate

Definition at line 193 of file ltr_definitions.h.

◆ ps_mode_active

bool ps_mode_active

Definition at line 155 of file ltr_definitions.h.

◆ ps_mode_xxx

bool ps_mode_xxx

Definition at line 154 of file ltr_definitions.h.

◆ ps_new_data

bool ps_new_data

Definition at line 228 of file ltr_definitions.h.

◆ ps_persist

uint8_t ps_persist

Definition at line 269 of file ltr_definitions.h.

◆ ps_saturation_flag

bool ps_saturation_flag

Definition at line 245 of file ltr_definitions.h.

◆ ps_saturation_indicator_enable

bool ps_saturation_indicator_enable

Definition at line 158 of file ltr_definitions.h.

◆ reserved

uint8_t reserved

Definition at line 144 of file ltr_definitions.h.

◆ reserved_4

bool reserved_4

Definition at line 157 of file ltr_definitions.h.

◆ reserved_6

bool reserved_6

Definition at line 159 of file ltr_definitions.h.

◆ reserved_7

bool reserved_7

Definition at line 160 of file ltr_definitions.h.

◆ revision_id

uint8_t revision_id

Definition at line 218 of file ltr_definitions.h.

◆ sw_reset

bool sw_reset

Definition at line 142 of file ltr_definitions.h.