ESPHome  2024.11.1
Data Structures | Enumerations | Functions
esphome::ltr390 Namespace Reference

Data Structures

class  LTR390Component
 

Enumerations

enum  LTR390CTRL { LTR390_CTRL_EN = 1, LTR390_CTRL_MODE = 3, LTR390_CTRL_RST = 4 }
 
enum  LTR390MODE { LTR390_MODE_ALS, LTR390_MODE_UVS }
 
enum  LTR390GAIN {
  LTR390_GAIN_1 = 0, LTR390_GAIN_3, LTR390_GAIN_6, LTR390_GAIN_9,
  LTR390_GAIN_18
}
 
enum  LTR390RESOLUTION {
  LTR390_RESOLUTION_20BIT, LTR390_RESOLUTION_19BIT, LTR390_RESOLUTION_18BIT, LTR390_RESOLUTION_17BIT,
  LTR390_RESOLUTION_16BIT, LTR390_RESOLUTION_13BIT
}
 

Functions

uint32_t little_endian_bytes_to_int (const uint8_t *buffer, uint8_t num_bytes)
 

Enumeration Type Documentation

◆ LTR390CTRL

Enumerator
LTR390_CTRL_EN 
LTR390_CTRL_MODE 
LTR390_CTRL_RST 

Definition at line 13 of file ltr390.h.

◆ LTR390GAIN

Enumerator
LTR390_GAIN_1 
LTR390_GAIN_3 
LTR390_GAIN_6 
LTR390_GAIN_9 
LTR390_GAIN_18 

Definition at line 27 of file ltr390.h.

◆ LTR390MODE

Enumerator
LTR390_MODE_ALS 
LTR390_MODE_UVS 

Definition at line 21 of file ltr390.h.

◆ LTR390RESOLUTION

Enumerator
LTR390_RESOLUTION_20BIT 
LTR390_RESOLUTION_19BIT 
LTR390_RESOLUTION_18BIT 
LTR390_RESOLUTION_17BIT 
LTR390_RESOLUTION_16BIT 
LTR390_RESOLUTION_13BIT 

Definition at line 36 of file ltr390.h.

Function Documentation

◆ little_endian_bytes_to_int()

uint32_t esphome::ltr390::little_endian_bytes_to_int ( const uint8_t *  buffer,
uint8_t  num_bytes 
)

Definition at line 32 of file ltr390.cpp.