20 #define LTR329_ALS_CONTR 0x80 21 #define LTR329_ALS_MEAS_RATE 0x85 22 #define LTR329_PART_ID 0x86 23 #define LTR329_MANUFAC_ID 0x87 24 #define LTR329_ALS_DATA_CH1_0 0x88 25 #define LTR329_ALS_DATA_CH1_1 0x89 26 #define LTR329_ALS_DATA_CH0_0 0x8A 27 #define LTR329_ALS_DATA_CH0_1 0x8B 28 #define LTR329_ALS_STATUS 0x8C 38 #define LTR329_ERR_NONE 0x00 40 #define LTR329_ERR_I2C 0x40 41 #define LTR329_ERR_ID 0x41 42 #define LTR329_ERR_GAIN 0x42 43 #define LTR329_ERR_MEASURE_TIMEOUT 0x43
error_t LTR329_init(void)
Configure sensor with measurement rate of 2s & integration time of 50ms. Sensor is in stand-by mode...
error_t LTR329_set_active_mode(ltr329_gain_e gain)
Put sensor in active mode & configure sensor gain.
unsigned short u16
Definition: sensit_types.h:12
ltr329_gain_e
Setting for light sensor gain.
Definition: ltr329.h:51
unsigned char error_t
Definition: sensit_types.h:23
error_t LTR329_measure(u16 *light_ch0, u16 *light_ch1)
Get a light measurement. Values must be divided by the configured gain to convert it in lux...
error_t LTR329_set_standby_mode(void)
Put sensor in stand-by mode.