Contiki-NG
|
Driver for the TSL256X sensor. More...
Files | |
file | tsl256x.c |
Driver for the external TSL256X light sensor. | |
file | tsl256x.h |
Header file for the external TSL256X Sensor Driver. | |
TSL256X convertion and calibration values | |
#define | LUX_SCALE 14 |
scale by 2^14 | |
#define | RATIO_SCALE 9 |
scale ratio | |
#define | CH_SCALE 10 |
scale channel values by 2^10 | |
#define | CHSCALE_TINT0 0x7517 |
322/11 * 2^CH_SCALE | |
#define | CHSCALE_TINT1 0x0fe7 |
322/81 * 2^CH_SCALE | |
#define | K1T 0X0040 |
#define | B1T 0x01f2 |
#define | M1T 0x01b2 |
#define | K2T 0x0080 |
#define | B2T 0x0214 |
#define | M2T 0x02d1 |
#define | K3T 0x00c0 |
#define | B3T 0x023f |
#define | M3T 0x037b |
#define | K4T 0x0100 |
#define | B4T 0x0270 |
#define | M4T 0x03fe |
#define | K5T 0x0138 |
#define | B5T 0x016f |
#define | M5T 0x01fc |
#define | K6T 0x019a |
#define | B6T 0x00d2 |
#define | M6T 0x00fb |
#define | K7T 0x029a |
#define | B7T 0x0018 |
#define | M7T 0x0012 |
#define | K8T 0x029a |
#define | B8T 0x0000 |
#define | M8T 0x0000 |
Callback function to handle the TSL256X alarm interrupt and macro | |
void(* | tsl256x_int_callback )(uint8_t value) |
#define | TSL256X_REGISTER_INT(ptr) tsl256x_int_callback = ptr; |
Driver for the TSL256X sensor.
The TSL256X driver returns the converted light value value in lux