Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
Go to the source code of this file.
Data Structures | |
struct | vcnl4000_data |
Macros | |
#define | VCNL4000_DRV_NAME "vcnl4000" |
#define | VCNL4000_COMMAND 0x80 /* Command register */ |
#define | VCNL4000_PROD_REV 0x81 /* Product ID and Revision ID */ |
#define | VCNL4000_LED_CURRENT 0x83 /* IR LED current for proximity mode */ |
#define | VCNL4000_AL_PARAM 0x84 /* Ambient light parameter register */ |
#define | VCNL4000_AL_RESULT_HI 0x85 /* Ambient light result register, MSB */ |
#define | VCNL4000_AL_RESULT_LO 0x86 /* Ambient light result register, LSB */ |
#define | VCNL4000_PS_RESULT_HI 0x87 /* Proximity result register, MSB */ |
#define | VCNL4000_PS_RESULT_LO 0x88 /* Proximity result register, LSB */ |
#define | VCNL4000_PS_MEAS_FREQ 0x89 /* Proximity test signal frequency */ |
#define | VCNL4000_PS_MOD_ADJ 0x8a /* Proximity modulator timing adjustment */ |
#define | VCNL4000_AL_RDY 0x40 /* ALS data ready? */ |
#define | VCNL4000_PS_RDY 0x20 /* proximity data ready? */ |
#define | VCNL4000_AL_OD 0x10 /* start on-demand ALS measurement */ |
#define | VCNL4000_PS_OD 0x08 /* start on-demand proximity measurement */ |
Functions | |
MODULE_DEVICE_TABLE (i2c, vcnl4000_id) | |
module_i2c_driver (vcnl4000_driver) | |
MODULE_AUTHOR ("Peter Meerwald <[email protected]>") | |
MODULE_DESCRIPTION ("Vishay VCNL4000 proximity/ambient light sensor driver") | |
MODULE_LICENSE ("GPL") | |
#define VCNL4000_AL_OD 0x10 /* start on-demand ALS measurement */ |
Definition at line 42 of file vcnl4000.c.
#define VCNL4000_AL_PARAM 0x84 /* Ambient light parameter register */ |
Definition at line 31 of file vcnl4000.c.
#define VCNL4000_AL_RDY 0x40 /* ALS data ready? */ |
Definition at line 40 of file vcnl4000.c.
#define VCNL4000_AL_RESULT_HI 0x85 /* Ambient light result register, MSB */ |
Definition at line 32 of file vcnl4000.c.
#define VCNL4000_AL_RESULT_LO 0x86 /* Ambient light result register, LSB */ |
Definition at line 33 of file vcnl4000.c.
#define VCNL4000_COMMAND 0x80 /* Command register */ |
Definition at line 28 of file vcnl4000.c.
#define VCNL4000_DRV_NAME "vcnl4000" |
Definition at line 26 of file vcnl4000.c.
#define VCNL4000_LED_CURRENT 0x83 /* IR LED current for proximity mode */ |
Definition at line 30 of file vcnl4000.c.
#define VCNL4000_PROD_REV 0x81 /* Product ID and Revision ID */ |
Definition at line 29 of file vcnl4000.c.
#define VCNL4000_PS_MEAS_FREQ 0x89 /* Proximity test signal frequency */ |
Definition at line 36 of file vcnl4000.c.
#define VCNL4000_PS_MOD_ADJ 0x8a /* Proximity modulator timing adjustment */ |
Definition at line 37 of file vcnl4000.c.
#define VCNL4000_PS_OD 0x08 /* start on-demand proximity measurement */ |
Definition at line 43 of file vcnl4000.c.
#define VCNL4000_PS_RDY 0x20 /* proximity data ready? */ |
Definition at line 41 of file vcnl4000.c.
#define VCNL4000_PS_RESULT_HI 0x87 /* Proximity result register, MSB */ |
Definition at line 34 of file vcnl4000.c.
#define VCNL4000_PS_RESULT_LO 0x88 /* Proximity result register, LSB */ |
Definition at line 35 of file vcnl4000.c.
MODULE_AUTHOR | ( | "Peter Meerwald <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
vcnl4000_id | |||
) |
module_i2c_driver | ( | vcnl4000_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |