ESPHome  2024.12.2
Data Structures | Namespaces | Enumerations | Variables
ltr_definitions_501.h File Reference

Go to the source code of this file.

Data Structures

union  esphome::ltr501::AlsControlRegister501
 
union  esphome::ltr501::PsControlRegister501
 
union  esphome::ltr501::PsLedRegister
 
union  esphome::ltr501::PsNPulsesRegister501
 
union  esphome::ltr501::PsMeasurementRateRegister
 
union  esphome::ltr501::MeasurementRateRegister501
 
union  esphome::ltr501::PartIdRegister
 
union  esphome::ltr501::AlsPsStatusRegister
 
union  esphome::ltr501::PsData1Register
 
union  esphome::ltr501::InterruptRegister
 
union  esphome::ltr501::InterruptPersistRegister
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::ltr501
 

Enumerations

enum  esphome::ltr501::CommandRegisters : uint8_t {
  esphome::ltr501::CommandRegisters::ALS_CONTR = 0x80, esphome::ltr501::CommandRegisters::PS_CONTR = 0x81, esphome::ltr501::CommandRegisters::PS_LED = 0x82, esphome::ltr501::CommandRegisters::PS_N_PULSES = 0x83,
  esphome::ltr501::CommandRegisters::PS_MEAS_RATE = 0x84, esphome::ltr501::CommandRegisters::MEAS_RATE = 0x85, esphome::ltr501::CommandRegisters::PART_ID = 0x86, esphome::ltr501::CommandRegisters::MANUFAC_ID = 0x87,
  esphome::ltr501::CommandRegisters::ALS_DATA_CH1_0 = 0x88, esphome::ltr501::CommandRegisters::ALS_DATA_CH1_1 = 0x89, esphome::ltr501::CommandRegisters::ALS_DATA_CH0_0 = 0x8A, esphome::ltr501::CommandRegisters::ALS_DATA_CH0_1 = 0x8B,
  esphome::ltr501::CommandRegisters::ALS_PS_STATUS = 0x8C, esphome::ltr501::CommandRegisters::PS_DATA_0 = 0x8D, esphome::ltr501::CommandRegisters::PS_DATA_1 = 0x8E, esphome::ltr501::CommandRegisters::ALS_PS_INTERRUPT = 0x8F,
  esphome::ltr501::CommandRegisters::PS_THRES_UP_0 = 0x90, esphome::ltr501::CommandRegisters::PS_THRES_UP_1 = 0x91, esphome::ltr501::CommandRegisters::PS_THRES_LOW_0 = 0x92, esphome::ltr501::CommandRegisters::PS_THRES_LOW_1 = 0x93,
  esphome::ltr501::CommandRegisters::PS_OFFSET_1 = 0x94, esphome::ltr501::CommandRegisters::PS_OFFSET_0 = 0x95, esphome::ltr501::CommandRegisters::ALS_THRES_UP_0 = 0x97, esphome::ltr501::CommandRegisters::ALS_THRES_UP_1 = 0x98,
  esphome::ltr501::CommandRegisters::ALS_THRES_LOW_0 = 0x99, esphome::ltr501::CommandRegisters::ALS_THRES_LOW_1 = 0x9A, esphome::ltr501::CommandRegisters::INTERRUPT_PERSIST = 0x9E
}
 
enum  esphome::ltr501::AlsGain501 : uint8_t { esphome::ltr501::GAIN_1 = 0, esphome::ltr501::GAIN_150 = 1 }
 
enum  esphome::ltr501::IntegrationTime501 : uint8_t { esphome::ltr501::INTEGRATION_TIME_100MS = 0, esphome::ltr501::INTEGRATION_TIME_50MS = 1, esphome::ltr501::INTEGRATION_TIME_200MS = 2, esphome::ltr501::INTEGRATION_TIME_400MS = 3 }
 
enum  esphome::ltr501::MeasurementRepeatRate {
  esphome::ltr501::REPEAT_RATE_50MS = 0, esphome::ltr501::REPEAT_RATE_100MS = 1, esphome::ltr501::REPEAT_RATE_200MS = 2, esphome::ltr501::REPEAT_RATE_500MS = 3,
  esphome::ltr501::REPEAT_RATE_1000MS = 4, esphome::ltr501::REPEAT_RATE_2000MS = 5
}
 
enum  esphome::ltr501::PsGain501 : uint8_t { esphome::ltr501::PS_GAIN_1 = 0, esphome::ltr501::PS_GAIN_4 = 1, esphome::ltr501::PS_GAIN_8 = 2, esphome::ltr501::PS_GAIN_16 = 3 }
 
enum  esphome::ltr501::PsLedFreq : uint8_t {
  esphome::ltr501::PS_LED_FREQ_30KHZ = 0, esphome::ltr501::PS_LED_FREQ_40KHZ = 1, esphome::ltr501::PS_LED_FREQ_50KHZ = 2, esphome::ltr501::PS_LED_FREQ_60KHZ = 3,
  esphome::ltr501::PS_LED_FREQ_70KHZ = 4, esphome::ltr501::PS_LED_FREQ_80KHZ = 5, esphome::ltr501::PS_LED_FREQ_90KHZ = 6, esphome::ltr501::PS_LED_FREQ_100KHZ = 7
}
 
enum  esphome::ltr501::PsLedDuty : uint8_t { esphome::ltr501::PS_LED_DUTY_25 = 0, esphome::ltr501::PS_LED_DUTY_50 = 1, esphome::ltr501::PS_LED_DUTY_75 = 2, esphome::ltr501::PS_LED_DUTY_100 = 3 }
 
enum  esphome::ltr501::PsLedCurrent : uint8_t {
  esphome::ltr501::PS_LED_CURRENT_5MA = 0, esphome::ltr501::PS_LED_CURRENT_10MA = 1, esphome::ltr501::PS_LED_CURRENT_20MA = 2, esphome::ltr501::PS_LED_CURRENT_50MA = 3,
  esphome::ltr501::PS_LED_CURRENT_100MA = 4, esphome::ltr501::PS_LED_CURRENT_100MA1 = 5, esphome::ltr501::PS_LED_CURRENT_100MA2 = 6, esphome::ltr501::PS_LED_CURRENT_100MA3 = 7
}
 
enum  esphome::ltr501::PsMeasurementRate : uint8_t {
  esphome::ltr501::PS_MEAS_RATE_50MS = 0, esphome::ltr501::PS_MEAS_RATE_70MS = 1, esphome::ltr501::PS_MEAS_RATE_100MS = 2, esphome::ltr501::PS_MEAS_RATE_200MS = 3,
  esphome::ltr501::PS_MEAS_RATE_500MS = 4, esphome::ltr501::PS_MEAS_RATE_1000MS = 5, esphome::ltr501::PS_MEAS_RATE_2000MS = 6, esphome::ltr501::PS_MEAS_RATE_2000MS1 = 7
}
 

Variables

bool asl_mode_xxx
 
bool als_mode_active
 
bool sw_reset
 
AlsGain501 gain
 
uint8_t reserved
 
bool ps_mode_xxx
 
bool ps_mode_active
 
PsGain501 ps_gain
 
bool reserved_4
 
bool reserved_5
 
bool reserved_6
 
bool reserved_7
 
PsLedCurrent ps_led_current
 
PsLedDuty ps_led_duty
 
PsLedFreq ps_led_freq
 
PsMeasurementRate ps_measurement_rate
 
MeasurementRepeatRate measurement_repeat_rate
 
IntegrationTime501 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
 
uint8_t ps_data_high
 
bool ps_saturation_flag
 
bool interrupt_polarity
 
uint8_t als_persist
 
uint8_t ps_persist
 

Variable Documentation

◆ als_interrupt

bool als_interrupt

Definition at line 214 of file ltr_definitions_501.h.

◆ als_mode_active

bool als_mode_active

Definition at line 126 of file ltr_definitions_501.h.

◆ als_new_data

bool als_new_data

Definition at line 213 of file ltr_definitions_501.h.

◆ als_persist

uint8_t als_persist

Definition at line 253 of file ltr_definitions_501.h.

◆ asl_mode_xxx

bool asl_mode_xxx

Definition at line 125 of file ltr_definitions_501.h.

◆ gain

AlsGain gain

Definition at line 128 of file ltr_definitions_501.h.

◆ integration_time

IntegrationTime501 integration_time

Definition at line 187 of file ltr_definitions_501.h.

◆ interrupt_polarity

bool interrupt_polarity

Definition at line 242 of file ltr_definitions_501.h.

◆ measurement_repeat_rate

MeasurementRepeatRate measurement_repeat_rate

Definition at line 186 of file ltr_definitions_501.h.

◆ part_number_id

uint8_t part_number_id

Definition at line 200 of file ltr_definitions_501.h.

◆ ps_data_high

uint8_t ps_data_high

Definition at line 228 of file ltr_definitions_501.h.

◆ ps_gain

PsGain501 ps_gain

Definition at line 141 of file ltr_definitions_501.h.

◆ ps_interrupt

bool ps_interrupt

Definition at line 212 of file ltr_definitions_501.h.

◆ ps_led_current

PsLedCurrent ps_led_current

Definition at line 155 of file ltr_definitions_501.h.

◆ ps_led_duty

PsLedDuty ps_led_duty

Definition at line 156 of file ltr_definitions_501.h.

◆ ps_led_freq

PsLedFreq ps_led_freq

Definition at line 157 of file ltr_definitions_501.h.

◆ ps_measurement_rate

PsMeasurementRate ps_measurement_rate

Definition at line 175 of file ltr_definitions_501.h.

◆ ps_mode_active

bool ps_mode_active

Definition at line 140 of file ltr_definitions_501.h.

◆ ps_mode_xxx

bool ps_mode_xxx

Definition at line 139 of file ltr_definitions_501.h.

◆ ps_new_data

bool ps_new_data

Definition at line 211 of file ltr_definitions_501.h.

◆ ps_persist

uint8_t ps_persist

Definition at line 254 of file ltr_definitions_501.h.

◆ ps_saturation_flag

bool ps_saturation_flag

Definition at line 230 of file ltr_definitions_501.h.

◆ reserved

uint8_t reserved

Definition at line 129 of file ltr_definitions_501.h.

◆ reserved_4

bool reserved_4

Definition at line 142 of file ltr_definitions_501.h.

◆ reserved_5

bool reserved_5

Definition at line 143 of file ltr_definitions_501.h.

◆ reserved_6

bool reserved_6

Definition at line 144 of file ltr_definitions_501.h.

◆ reserved_7

bool reserved_7

Definition at line 145 of file ltr_definitions_501.h.

◆ revision_id

uint8_t revision_id

Definition at line 201 of file ltr_definitions_501.h.

◆ sw_reset

bool sw_reset

Definition at line 127 of file ltr_definitions_501.h.