|
PebbleOS v4.48.0-75-g7416f78a1
|
Sensortek W1160 Ambient light sensor driver. More...
Data Structures | |
| struct | pbl_als_w1160_state |
| W1160 driver state, owned by the driver. More... | |
| struct | pbl_als_w1160 |
| W1160 ambient light sensor. More... | |
Macros | |
| #define | PBL_ALS_W1160_DEFINE(sym, _bus, _addr, _num, _den, _supply) |
| Define a W1160. | |
Sensortek W1160 Ambient light sensor driver.
While primed the sensor samples continuously and reads are plain register reads; otherwise each read is a one-shot conversion.
| struct pbl_als_w1160_state |
| struct pbl_als_w1160 |
W1160 ambient light sensor.
| Data Fields | ||
|---|---|---|
| struct pbl_als | als | Ambient light sensor, child of the I2C bus. |
| struct pbl_i2c_dev | i2c | I2C device. |
| struct pbl_als_w1160_state * | state | Driver state. |
| const struct pbl_regulator * | supply | Supply, or NULL. |
| #define PBL_ALS_W1160_DEFINE | ( | sym, | |
| _bus, | |||
| _addr, | |||
| _num, | |||
| _den, | |||
| _supply | |||
| ) |
Define a W1160.
| sym | Symbol of the sensor. |
| _bus | I2C bus. |
| _addr | 7-bit I2C address. |
| _num | Numerator of the lux per count, through the cover glass. |
| _den | Denominator of the lux per count. |
| _supply | Supply, or NULL. |