ESPHome
2024.11.2
esphome
esphome
components
ltr_als_ps
ltr_definitions.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
namespace
esphome
{
6
namespace
ltr_als_ps {
7
8
enum class
CommandRegisters
: uint8_t {
9
ALS_CONTR
= 0x80,
// ALS operation mode control and SW reset
10
PS_CONTR
= 0x81,
// PS operation mode control
11
PS_LED
= 0x82,
// PS LED pulse frequency control
12
PS_N_PULSES
= 0x83,
// PS number of pulses control
13
PS_MEAS_RATE
= 0x84,
// PS measurement rate in active mode
14
MEAS_RATE
= 0x85,
// ALS measurement rate in active mode
15
PART_ID
= 0x86,
// Part Number ID and Revision ID
16
MANUFAC_ID
= 0x87,
// Manufacturer ID
17
ALS_DATA_CH1_0
= 0x88,
// ALS measurement CH1 data, lower byte - infrared only
18
ALS_DATA_CH1_1
= 0x89,
// ALS measurement CH1 data, upper byte - infrared only
19
ALS_DATA_CH0_0
= 0x8A,
// ALS measurement CH0 data, lower byte - visible + infrared
20
ALS_DATA_CH0_1
= 0x8B,
// ALS measurement CH0 data, upper byte - visible + infrared
21
ALS_PS_STATUS
= 0x8C,
// ALS PS new data status
22
PS_DATA_0
= 0x8D,
// PS measurement data, lower byte
23
PS_DATA_1
= 0x8E,
// PS measurement data, upper byte
24
ALS_PS_INTERRUPT
= 0x8F,
// Interrupt status
25
PS_THRES_UP_0
= 0x90,
// PS interrupt upper threshold, lower byte
26
PS_THRES_UP_1
= 0x91,
// PS interrupt upper threshold, upper byte
27
PS_THRES_LOW_0
= 0x92,
// PS interrupt lower threshold, lower byte
28
PS_THRES_LOW_1
= 0x93,
// PS interrupt lower threshold, upper byte
29
PS_OFFSET_1
= 0x94,
// PS offset, upper byte
30
PS_OFFSET_0
= 0x95,
// PS offset, lower byte
31
// 0x96 - reserved
32
ALS_THRES_UP_0
= 0x97,
// ALS interrupt upper threshold, lower byte
33
ALS_THRES_UP_1
= 0x98,
// ALS interrupt upper threshold, upper byte
34
ALS_THRES_LOW_0
= 0x99,
// ALS interrupt lower threshold, lower byte
35
ALS_THRES_LOW_1
= 0x9A,
// ALS interrupt lower threshold, upper byte
36
// 0x9B - reserved
37
// 0x9C - reserved
38
// 0x9D - reserved
39
INTERRUPT_PERSIST
= 0x9E
// Interrupt persistence filter
40
};
41
42
// ALS Sensor gain levels
43
enum
AlsGain
: uint8_t {
44
GAIN_1
= 0,
// default
45
GAIN_2
= 1,
46
GAIN_4
= 2,
47
GAIN_8
= 3,
48
GAIN_48
= 6,
49
GAIN_96
= 7,
50
};
51
static
const
uint8_t GAINS_COUNT = 6;
52
53
// ALS Sensor integration times
54
enum
IntegrationTime
: uint8_t {
55
INTEGRATION_TIME_100MS
= 0,
// default
56
INTEGRATION_TIME_50MS
= 1,
57
INTEGRATION_TIME_200MS
= 2,
58
INTEGRATION_TIME_400MS
= 3,
59
INTEGRATION_TIME_150MS
= 4,
60
INTEGRATION_TIME_250MS
= 5,
61
INTEGRATION_TIME_300MS
= 6,
62
INTEGRATION_TIME_350MS
= 7
63
};
64
static
const
uint8_t TIMES_COUNT = 8;
65
66
// ALS Sensor measurement repeat rate
67
enum
MeasurementRepeatRate
{
68
REPEAT_RATE_50MS
= 0,
69
REPEAT_RATE_100MS
= 1,
70
REPEAT_RATE_200MS
= 2,
71
REPEAT_RATE_500MS
= 3,
// default
72
REPEAT_RATE_1000MS
= 4,
73
REPEAT_RATE_2000MS
= 5
74
};
75
76
// PS Sensor gain levels
77
enum
PsGain
: uint8_t {
78
PS_GAIN_16
= 0,
// default
79
PS_GAIN_32
= 2,
80
PS_GAIN_64
= 3,
81
};
82
83
// PS Mode
84
enum
PsMode
: uint8_t {
85
PS_MODE_STANDBY_00
= 0,
// default
86
PS_MODE_STANDBY_01
= 1,
87
PS_MODE_ACTIVE_10
= 2,
88
PS_MODE_ACTIVE_11
= 3,
89
};
90
91
// LED Pulse Modulation Frequency
92
enum
PsLedFreq
: uint8_t {
93
PS_LED_FREQ_30KHZ
= 0,
94
PS_LED_FREQ_40KHZ
= 1,
95
PS_LED_FREQ_50KHZ
= 2,
96
PS_LED_FREQ_60KHZ
= 3,
// default
97
PS_LED_FREQ_70KHZ
= 4,
98
PS_LED_FREQ_80KHZ
= 5,
99
PS_LED_FREQ_90KHZ
= 6,
100
PS_LED_FREQ_100KHZ
= 7,
101
};
102
103
// LED current duty
104
enum
PsLedDuty
: uint8_t {
105
PS_LED_DUTY_25
= 0,
106
PS_LED_DUTY_50
= 1,
107
PS_LED_DUTY_75
= 2,
108
PS_LED_DUTY_100
= 3,
// default
109
};
110
111
// LED pulsed current level
112
enum
PsLedCurrent
: uint8_t {
113
PS_LED_CURRENT_5MA
= 0,
114
PS_LED_CURRENT_10MA
= 1,
115
PS_LED_CURRENT_20MA
= 2,
116
PS_LED_CURRENT_50MA
= 3,
117
PS_LED_CURRENT_100MA
= 4,
// default
118
PS_LED_CURRENT_100MA1
= 5,
119
PS_LED_CURRENT_100MA2
= 6,
120
PS_LED_CURRENT_100MA3
= 7,
121
};
122
123
// PS measurement rate
124
enum
PsMeasurementRate
: uint8_t {
125
PS_MEAS_RATE_50MS
= 0,
126
PS_MEAS_RATE_70MS
= 1,
127
PS_MEAS_RATE_100MS
= 2,
128
PS_MEAS_RATE_200MS
= 3,
129
PS_MEAS_RATE_500MS
= 4,
// default
130
PS_MEAS_RATE_1000MS
= 5,
131
PS_MEAS_RATE_2000MS
= 6,
132
PS_MEAS_RATE_2000MS1
= 7,
133
PS_MEAS_RATE_10MS
= 8,
134
};
135
136
//
137
// ALS_CONTR Register (0x80)
138
//
139
union
AlsControlRegister
{
140
uint8_t
raw
;
141
struct
{
142
bool
active_mode
: 1;
143
bool
sw_reset
: 1;
144
AlsGain
gain
: 3;
145
uint8_t
reserved
: 3;
146
}
__attribute__
((packed));
147
};
148
149
//
150
// PS_CONTR Register (0x81)
151
//
152
union
PsControlRegister
{
153
uint8_t
raw
;
154
struct
{
155
bool
ps_mode_xxx
: 1;
156
bool
ps_mode_active
: 1;
157
PsGain
ps_gain
: 2;
// only LTR-659/558
158
bool
reserved_4
: 1;
159
bool
ps_saturation_indicator_enable
: 1;
160
bool
reserved_6
: 1;
161
bool
reserved_7
: 1;
162
}
__attribute__
((packed));
163
};
164
165
//
166
// PS_LED Register (0x82)
167
//
168
union
PsLedRegister
{
169
uint8_t
raw
;
170
struct
{
171
PsLedCurrent
ps_led_current
: 3;
172
PsLedDuty
ps_led_duty
: 2;
173
PsLedFreq
ps_led_freq
: 3;
174
}
__attribute__
((packed));
175
};
176
177
//
178
// PS_N_PULSES Register (0x83)
179
//
180
union
PsNPulsesRegister
{
181
uint8_t
raw
;
182
struct
{
183
uint8_t
number_of_pulses
: 4;
184
uint8_t
reserved
: 4;
185
}
__attribute__
((packed));
186
};
187
188
//
189
// PS_MEAS_RATE Register (0x84)
190
//
191
union
PsMeasurementRateRegister
{
192
uint8_t
raw
;
193
struct
{
194
PsMeasurementRate
ps_measurement_rate
: 4;
195
uint8_t
reserved
: 4;
196
}
__attribute__
((packed));
197
};
198
199
//
200
// ALS_MEAS_RATE Register (0x85)
201
//
202
union
MeasurementRateRegister
{
203
uint8_t
raw
;
204
struct
{
205
MeasurementRepeatRate
measurement_repeat_rate
: 3;
206
IntegrationTime
integration_time
: 3;
207
bool
reserved_6
: 1;
208
bool
reserved_7
: 1;
209
}
__attribute__
((packed));
210
};
211
212
//
213
// PART_ID Register (0x86) (Read Only)
214
//
215
union
PartIdRegister
{
216
uint8_t
raw
;
217
struct
{
218
uint8_t
part_number_id
: 4;
219
uint8_t
revision_id
: 4;
220
}
__attribute__
((packed));
221
};
222
223
//
224
// ALS_PS_STATUS Register (0x8C) (Read Only)
225
//
226
union
AlsPsStatusRegister
{
227
uint8_t
raw
;
228
struct
{
229
bool
ps_new_data
: 1;
// 0 - old data, 1 - new data
230
bool
ps_interrupt
: 1;
// 0 - interrupt signal not active, 1 - interrupt signal active
231
bool
als_new_data
: 1;
// 0 - old data, 1 - new data
232
bool
als_interrupt
: 1;
// 0 - interrupt signal not active, 1 - interrupt signal active
233
AlsGain
gain
: 3;
// current ALS gain
234
bool
data_invalid
: 1;
235
}
__attribute__
((packed));
236
};
237
238
//
239
// PS_DATA_1 Register (0x8E) (Read Only)
240
//
241
union
PsData1Register
{
242
uint8_t
raw
;
243
struct
{
244
uint8_t
ps_data_high
: 3;
245
uint8_t
reserved
: 4;
246
bool
ps_saturation_flag
: 1;
247
}
__attribute__
((packed));
248
};
249
250
//
251
// INTERRUPT Register (0x8F) (Read Only)
252
//
253
union
InterruptRegister
{
254
uint8_t
raw
;
255
struct
{
256
bool
ps_interrupt
: 1;
257
bool
als_interrupt
: 1;
258
bool
interrupt_polarity
: 1;
// 0 - active low (default), 1 - active high
259
uint8_t
reserved
: 5;
260
}
__attribute__
((packed));
261
};
262
263
//
264
// INTERRUPT_PERSIST Register (0x9E)
265
//
266
union
InterruptPersistRegister
{
267
uint8_t
raw
;
268
struct
{
269
uint8_t
als_persist
: 4;
// 0 - every ALS cycle, 1 - every 2 ALS cycles, ... 15 - every 16 ALS cycles
270
uint8_t
ps_persist
: 4;
// 0 - every PS cycle, 1 - every 2 PS cycles, ... 15 - every 16 PS cycles
271
}
__attribute__
((packed));
272
};
273
274
}
// namespace ltr_als_ps
275
}
// namespace esphome
esphome::ltr_als_ps::PS_MEAS_RATE_2000MS1
Definition:
ltr_definitions.h:132
esphome::ltr_als_ps::GAIN_4
Definition:
ltr_definitions.h:46
esphome::ltr_als_ps::PartIdRegister::revision_id
uint8_t revision_id
Definition:
ltr_definitions.h:219
esphome::ltr_als_ps::CommandRegisters::ALS_PS_STATUS
esphome::ltr_als_ps::CommandRegisters::ALS_THRES_UP_1
esphome::ltr_als_ps::AlsPsStatusRegister::als_interrupt
bool als_interrupt
Definition:
ltr_definitions.h:232
esphome::ltr_als_ps::AlsControlRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:140
esphome::ltr_als_ps::CommandRegisters::ALS_DATA_CH1_1
esphome::ltr_als_ps::PS_LED_CURRENT_100MA2
Definition:
ltr_definitions.h:119
esphome::ltr_als_ps::GAIN_1
Definition:
ltr_definitions.h:44
esphome::ltr_als_ps::INTEGRATION_TIME_100MS
Definition:
ltr_definitions.h:55
esphome::ltr_als_ps::PsControlRegister
Definition:
ltr_definitions.h:152
esphome::ltr_als_ps::PsLedFreq
PsLedFreq
Definition:
ltr_definitions.h:92
als_new_data
bool als_new_data
Definition:
ltr_definitions.h:230
esphome::ltr_als_ps::PS_LED_CURRENT_100MA
Definition:
ltr_definitions.h:117
esphome::ltr_als_ps::PsData1Register
Definition:
ltr_definitions.h:241
ps_mode_xxx
bool ps_mode_xxx
Definition:
ltr_definitions.h:154
esphome::ltr_als_ps::PS_LED_FREQ_70KHZ
Definition:
ltr_definitions.h:97
esphome::ltr_als_ps::CommandRegisters::PS_DATA_1
esphome::ltr_als_ps::AlsGain
AlsGain
Definition:
ltr_definitions.h:43
esphome::ltr_als_ps::MeasurementRateRegister::reserved_6
bool reserved_6
Definition:
ltr_definitions.h:207
esphome::ltr_als_ps::CommandRegisters::ALS_THRES_LOW_0
measurement_repeat_rate
MeasurementRepeatRate measurement_repeat_rate
Definition:
ltr_definitions.h:204
esphome::ltr_als_ps::PsNPulsesRegister::number_of_pulses
uint8_t number_of_pulses
Definition:
ltr_definitions.h:183
ps_led_current
PsLedCurrent ps_led_current
Definition:
ltr_definitions.h:170
esphome::ltr_als_ps::PsNPulsesRegister::reserved
uint8_t reserved
Definition:
ltr_definitions.h:184
esphome::ltr_als_ps::PS_LED_FREQ_80KHZ
Definition:
ltr_definitions.h:98
esphome::ltr_als_ps::PS_LED_FREQ_30KHZ
Definition:
ltr_definitions.h:93
esphome::ltr_als_ps::INTEGRATION_TIME_200MS
Definition:
ltr_definitions.h:57
ps_interrupt
bool ps_interrupt
Definition:
ltr_definitions.h:229
esphome::ltr_als_ps::GAIN_96
Definition:
ltr_definitions.h:49
esphome::ltr_als_ps::PS_GAIN_16
Definition:
ltr_definitions.h:78
esphome::ltr_als_ps::PsMeasurementRateRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:192
esphome::ltr_als_ps::PS_LED_CURRENT_10MA
Definition:
ltr_definitions.h:114
esphome::ltr_als_ps::PS_MODE_ACTIVE_11
Definition:
ltr_definitions.h:88
esphome::ltr_als_ps::PS_LED_DUTY_50
Definition:
ltr_definitions.h:106
esphome::ltr_als_ps::MeasurementRateRegister::integration_time
IntegrationTime integration_time
Definition:
ltr_definitions.h:206
esphome::ltr_als_ps::REPEAT_RATE_500MS
Definition:
ltr_definitions.h:71
esphome::ltr_als_ps::PS_LED_CURRENT_100MA3
Definition:
ltr_definitions.h:120
esphome::ltr_als_ps::PS_LED_CURRENT_100MA1
Definition:
ltr_definitions.h:118
esphome::ltr_als_ps::InterruptRegister
Definition:
ltr_definitions.h:253
esphome::ltr_als_ps::MeasurementRateRegister::reserved_7
bool reserved_7
Definition:
ltr_definitions.h:208
esphome::ltr_als_ps::PS_MEAS_RATE_2000MS
Definition:
ltr_definitions.h:131
ps_gain
PsGain ps_gain
Definition:
ltr_definitions.h:156
esphome::ltr_als_ps::PsData1Register::raw
uint8_t raw
Definition:
ltr_definitions.h:242
esphome::ltr_als_ps::PsLedCurrent
PsLedCurrent
Definition:
ltr_definitions.h:112
esphome::ltr_als_ps::PS_LED_DUTY_100
Definition:
ltr_definitions.h:108
reserved_6
bool reserved_6
Definition:
ltr_definitions.h:159
esphome::ltr_als_ps::CommandRegisters::PART_ID
esphome::ltr_als_ps::CommandRegisters::ALS_THRES_UP_0
esphome::ltr_als_ps::InterruptPersistRegister::ps_persist
uint8_t ps_persist
Definition:
ltr_definitions.h:270
esphome::ltr_als_ps::PsLedRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:169
reserved_4
bool reserved_4
Definition:
ltr_definitions.h:157
active_mode
bool active_mode
Definition:
ltr_definitions.h:141
esphome::ltr_als_ps::PS_LED_DUTY_75
Definition:
ltr_definitions.h:107
esphome::ltr_als_ps::CommandRegisters::INTERRUPT_PERSIST
esphome::ltr_als_ps::CommandRegisters::ALS_CONTR
esphome::ltr_als_ps::REPEAT_RATE_2000MS
Definition:
ltr_definitions.h:73
esphome::ltr_als_ps::INTEGRATION_TIME_250MS
Definition:
ltr_definitions.h:60
esphome::ltr_als_ps::PS_MEAS_RATE_70MS
Definition:
ltr_definitions.h:126
esphome::ltr_als_ps::PS_MEAS_RATE_10MS
Definition:
ltr_definitions.h:133
esphome::ltr_als_ps::CommandRegisters::PS_CONTR
esphome::ltr_als_ps::AlsPsStatusRegister
Definition:
ltr_definitions.h:226
esphome::ltr_als_ps::CommandRegisters::PS_LED
esphome::ltr_als_ps::GAIN_2
Definition:
ltr_definitions.h:45
esphome::ltr_als_ps::REPEAT_RATE_200MS
Definition:
ltr_definitions.h:70
reserved
uint8_t reserved
Definition:
ltr_definitions.h:144
esphome::ltr_als_ps::CommandRegisters::PS_OFFSET_1
esphome::ltr_als_ps::PsLedRegister::ps_led_freq
PsLedFreq ps_led_freq
Definition:
ltr_definitions.h:173
als_interrupt
bool als_interrupt
Definition:
ltr_definitions.h:231
gain
AlsGain gain
Definition:
ltr_definitions.h:143
esphome::ltr_als_ps::CommandRegisters::PS_THRES_LOW_1
esphome::ltr_als_ps::PS_LED_FREQ_40KHZ
Definition:
ltr_definitions.h:94
esphome::ltr_als_ps::PS_LED_FREQ_100KHZ
Definition:
ltr_definitions.h:100
esphome::ltr_als_ps::InterruptRegister::reserved
uint8_t reserved
Definition:
ltr_definitions.h:259
esphome::ltr_als_ps::PS_LED_CURRENT_5MA
Definition:
ltr_definitions.h:113
esphome::ltr_als_ps::PS_LED_FREQ_90KHZ
Definition:
ltr_definitions.h:99
esphome::ltr_als_ps::AlsPsStatusRegister::data_invalid
bool data_invalid
Definition:
ltr_definitions.h:234
esphome::ltr_als_ps::MeasurementRateRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:203
esphome::ltr_als_ps::INTEGRATION_TIME_150MS
Definition:
ltr_definitions.h:59
esphome::ltr_als_ps::AlsPsStatusRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:227
esphome::ltr_als_ps::PS_LED_FREQ_60KHZ
Definition:
ltr_definitions.h:96
esphome::ltr_als_ps::MeasurementRateRegister
Definition:
ltr_definitions.h:202
esphome::ltr_als_ps::PS_LED_DUTY_25
Definition:
ltr_definitions.h:105
esphome::ltr_als_ps::CommandRegisters::PS_N_PULSES
esphome::ltr_als_ps::PsGain
PsGain
Definition:
ltr_definitions.h:77
esphome::ltr_als_ps::CommandRegisters::PS_THRES_UP_0
esphome::ltr_als_ps::CommandRegisters::ALS_DATA_CH1_0
esphome::ltr_als_ps::IntegrationTime
IntegrationTime
Definition:
ltr_definitions.h:54
esphome::ltr_als_ps::PsMeasurementRateRegister::reserved
uint8_t reserved
Definition:
ltr_definitions.h:195
part_number_id
uint8_t part_number_id
Definition:
ltr_definitions.h:217
esphome::ltr_als_ps::PsData1Register::ps_saturation_flag
bool ps_saturation_flag
Definition:
ltr_definitions.h:246
ps_led_duty
PsLedDuty ps_led_duty
Definition:
ltr_definitions.h:171
esphome::ltr_als_ps::CommandRegisters
CommandRegisters
Definition:
ltr_definitions.h:8
esphome::ltr_als_ps::InterruptRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:254
esphome::ltr_als_ps::INTEGRATION_TIME_300MS
Definition:
ltr_definitions.h:61
als_persist
uint8_t als_persist
Definition:
ltr_definitions.h:268
esphome::ltr_als_ps::CommandRegisters::ALS_DATA_CH0_0
esphome::ltr_als_ps::PS_MODE_STANDBY_01
Definition:
ltr_definitions.h:86
esphome::ltr_als_ps::InterruptPersistRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:267
esphome::ltr_als_ps::PsMode
PsMode
Definition:
ltr_definitions.h:84
esphome::ltr_als_ps::PsNPulsesRegister
Definition:
ltr_definitions.h:180
esphome::ltr_als_ps::PS_MEAS_RATE_100MS
Definition:
ltr_definitions.h:127
esphome::ltr_als_ps::__attribute__
enum esphome::ltr_als_ps::DataAvail __attribute__
esphome::ltr_als_ps::INTEGRATION_TIME_50MS
Definition:
ltr_definitions.h:56
esphome::ltr_als_ps::PsNPulsesRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:181
esphome::ltr_als_ps::PS_LED_CURRENT_20MA
Definition:
ltr_definitions.h:115
esphome::ltr_als_ps::PS_MEAS_RATE_50MS
Definition:
ltr_definitions.h:125
esphome::ltr_als_ps::AlsControlRegister
Definition:
ltr_definitions.h:139
esphome::ltr_als_ps::PsMeasurementRateRegister
Definition:
ltr_definitions.h:191
ps_mode_active
bool ps_mode_active
Definition:
ltr_definitions.h:155
ps_saturation_indicator_enable
bool ps_saturation_indicator_enable
Definition:
ltr_definitions.h:158
esphome::ltr_als_ps::PS_LED_FREQ_50KHZ
Definition:
ltr_definitions.h:95
esphome::ltr_als_ps::PS_MODE_STANDBY_00
Definition:
ltr_definitions.h:85
esphome::ltr_als_ps::PS_GAIN_64
Definition:
ltr_definitions.h:80
esphome::ltr_als_ps::PsData1Register::ps_data_high
uint8_t ps_data_high
Definition:
ltr_definitions.h:244
esphome::ltr_als_ps::AlsControlRegister::reserved
uint8_t reserved
Definition:
ltr_definitions.h:145
esphome::ltr_als_ps::PS_GAIN_32
Definition:
ltr_definitions.h:79
esphome::ltr_als_ps::PS_LED_CURRENT_50MA
Definition:
ltr_definitions.h:116
esphome::ltr_als_ps::PS_MODE_ACTIVE_10
Definition:
ltr_definitions.h:87
ps_new_data
bool ps_new_data
Definition:
ltr_definitions.h:228
esphome::ltr_als_ps::MeasurementRepeatRate
MeasurementRepeatRate
Definition:
ltr_definitions.h:67
esphome::ltr_als_ps::PS_MEAS_RATE_200MS
Definition:
ltr_definitions.h:128
esphome::ltr_als_ps::CommandRegisters::PS_THRES_LOW_0
esphome::ltr_als_ps::PsMeasurementRate
PsMeasurementRate
Definition:
ltr_definitions.h:124
esphome::ltr_als_ps::PsControlRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:153
esphome::ltr_als_ps::PsMeasurementRateRegister::ps_measurement_rate
PsMeasurementRate ps_measurement_rate
Definition:
ltr_definitions.h:194
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::ltr_als_ps::CommandRegisters::PS_OFFSET_0
esphome::ltr_als_ps::CommandRegisters::ALS_PS_INTERRUPT
esphome::ltr_als_ps::CommandRegisters::PS_DATA_0
esphome::ltr_als_ps::GAIN_8
Definition:
ltr_definitions.h:47
esphome::ltr_als_ps::PartIdRegister
Definition:
ltr_definitions.h:215
esphome::ltr_als_ps::GAIN_48
Definition:
ltr_definitions.h:48
esphome::ltr_als_ps::CommandRegisters::MEAS_RATE
esphome::ltr_als_ps::PS_MEAS_RATE_1000MS
Definition:
ltr_definitions.h:130
esphome::ltr_als_ps::CommandRegisters::ALS_THRES_LOW_1
esphome::ltr_als_ps::PartIdRegister::raw
uint8_t raw
Definition:
ltr_definitions.h:216
esphome::ltr_als_ps::INTEGRATION_TIME_350MS
Definition:
ltr_definitions.h:62
esphome::ltr_als_ps::InterruptRegister::ps_interrupt
bool ps_interrupt
Definition:
ltr_definitions.h:256
esphome::ltr_als_ps::REPEAT_RATE_100MS
Definition:
ltr_definitions.h:69
esphome::ltr_als_ps::PS_MEAS_RATE_500MS
Definition:
ltr_definitions.h:129
esphome::ltr_als_ps::CommandRegisters::MANUFAC_ID
esphome::ltr_als_ps::PsLedRegister
Definition:
ltr_definitions.h:168
esphome::ltr_als_ps::PsLedDuty
PsLedDuty
Definition:
ltr_definitions.h:104
esphome::ltr_als_ps::REPEAT_RATE_1000MS
Definition:
ltr_definitions.h:72
esphome::ltr_als_ps::InterruptPersistRegister
Definition:
ltr_definitions.h:266
esphome::ltr_als_ps::REPEAT_RATE_50MS
Definition:
ltr_definitions.h:68
esphome::ltr_als_ps::INTEGRATION_TIME_400MS
Definition:
ltr_definitions.h:58
esphome::ltr_als_ps::CommandRegisters::ALS_DATA_CH0_1
sw_reset
bool sw_reset
Definition:
ltr_definitions.h:142
esphome::ltr_als_ps::InterruptRegister::interrupt_polarity
bool interrupt_polarity
Definition:
ltr_definitions.h:258
esphome::ltr_als_ps::CommandRegisters::PS_MEAS_RATE
esphome::ltr_als_ps::CommandRegisters::PS_THRES_UP_1
esphome::ltr_als_ps::PsControlRegister::reserved_7
bool reserved_7
Definition:
ltr_definitions.h:161
Generated by
1.8.13