#include <linux/kernel.h>
#include <linux/i2c.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/mutex.h>
#include <linux/unistd.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
Go to the source code of this file.
#define TSL258X_ALS_CHAN0HI 0x15 |
#define TSL258X_ALS_CHAN0LO 0x14 |
#define TSL258X_ALS_CHAN1HI 0x17 |
#define TSL258X_ALS_CHAN1LO 0x16 |
#define TSL258X_ALS_TIME 0X01 |
#define TSL258X_CHIPID 0x12 |
#define TSL258X_CMD_ALS_INT_CLR 0X01 |
#define TSL258X_CMD_REG 0x80 |
#define TSL258X_CMD_SPL_FN 0x60 |
#define TSL258X_CNTL_ADC_ENBL 0x02 |
#define TSL258X_CNTL_PWR_ON 0x01 |
#define TSL258X_CNTRL 0x00 |
#define TSL258X_GAIN 0x07 |
#define TSL258X_INTERRUPT 0x02 |
#define TSL258X_LUX_CALC_OVER_FLOW 65535 |
#define TSL258X_MAX_DEVICE_REGS 32 |
#define TSL258X_REG_MAX 8 |
#define TSL258X_REVID 0x11 |
#define TSL258X_STA_ADC_INTR 0x10 |
#define TSL258X_STA_ADC_VALID 0x01 |
#define TSL258X_TMR_HI 0x19 |
#define TSL258X_TMR_LO 0x18 |
- Enumerator:
TSL258X_CHIP_UNKNOWN |
|
TSL258X_CHIP_WORKING |
|
TSL258X_CHIP_SUSPENDED |
|
Definition at line 68 of file tsl2583.c.
MODULE_DESCRIPTION |
( |
"TAOS tsl2583 ambient light sensor driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
taos_idtable |
|
|
) |
| |
module_i2c_driver |
( |
taos_driver |
| ) |
|