56 TSL4531X_INTEGRATE_400MS = 0,
57 TSL4531X_INTEGRATE_200MS = 1,
58 TSL4531X_INTEGRATE_100MS = 2,
67#define TSL45311_PARTNO (0x8)
68#define TSL45313_PARTNO (0x9)
69#define TSL45315_PARTNO (0xA)
70#define TSL45317_PARTNO (0xB)
75#define TSL45311_ADDR (0x39)
76#define TSL45313_ADDR (0x39)
77#define TSL45315_ADDR (0x29)
78#define TSL45317_ADDR (0x29)
uint_fast8_t i2c_t
Default i2c_t type definition.
int tsl4531x_get_sample(const tsl4531x_t *dev)
Reads the sample from the device immediately.
int tsl4531x_init(tsl4531x_t *dev, const tsl4531x_params_t *params)
Initialize the TSL4531x device.
int tsl4531x_start_sample(tsl4531x_t *dev)
Start collecting sample in low power mode.
int tsl4531x_set_low_power_mode(tsl4531x_t *dev, uint8_t low_power_on)
Set the low power mode of the driver on or off.
uint32_t tsl4531x_time_until_sample_ready(tsl4531x_t *dev)
Deliver time in microseconds until sample is ready, or zero if it is ready.
int tsl4531x_simple_read(tsl4531x_t *dev)
Reads the sample from the device.
tsl4531x_intgn_time_t
Integration times.
Low-level I2C peripheral driver interface definition.
Device initialization parameters.
i2c_t i2c_dev
I2C device which is used.
tsl4531x_intgn_time_t integration_time
integration time
uint8_t part_number
part number, according to variant
i2c_t i2c_addr
I2C address of sensor.
uint8_t low_power_mode
low power mode
uint8_t high_power_mode_started_up
high power mode started up flag
i2c_t i2c_addr
I2C address of sensor.
uint32_t sample_start_time
sample start time
i2c_t i2c_dev
I2C device which is used.
tsl4531x_intgn_time_t integration_time
integration time
uint8_t low_power_mode
low power mode