#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
Go to the source code of this file.
#define AD7152_CAPDAC_DACEN (1 << 7) |
#define AD7152_CAPDAC_DACP |
( |
|
x | ) |
((x) & 0x1F) |
#define AD7152_CFG2_OSR |
( |
|
x | ) |
(((x) & 0x3) << 4) |
#define AD7152_CONF_CH1EN (1 << 4) |
#define AD7152_CONF_CH2EN (1 << 3) |
#define AD7152_CONF_MODE_CONT_CONV (1 << 0) |
#define AD7152_CONF_MODE_GAIN_CAL (6 << 0) |
#define AD7152_CONF_MODE_IDLE (0 << 0) |
#define AD7152_CONF_MODE_OFFS_CAL (5 << 0) |
#define AD7152_CONF_MODE_SINGLE_CONV (2 << 0) |
#define AD7152_REG_CAPDAC_NEG 18 |
#define AD7152_REG_CAPDAC_POS 17 |
#define AD7152_REG_CFG 15 |
#define AD7152_REG_CFG2 26 |
#define AD7152_REG_CH1_DATA_HIGH 1 |
#define AD7152_REG_CH1_GAIN_HIGH 9 |
#define AD7152_REG_CH1_OFFS_HIGH 5 |
#define AD7152_REG_CH1_SETUP 11 |
#define AD7152_REG_CH2_DATA_HIGH 3 |
#define AD7152_REG_CH2_GAIN_HIGH 12 |
#define AD7152_REG_CH2_OFFS_HIGH 7 |
#define AD7152_REG_CH2_SETUP 14 |
#define AD7152_REG_RESEVERD 16 |
#define AD7152_REG_STATUS 0 |
#define AD7152_SETUP_CAPDIFF (1 << 5) |
#define AD7152_SETUP_RANGE |
( |
|
x | ) |
((x) << 6) |
#define AD7152_SETUP_RANGE_0_5pF (1 << 6) |
#define AD7152_SETUP_RANGE_1pF (2 << 6) |
#define AD7152_SETUP_RANGE_2pF (0 << 6) |
#define AD7152_SETUP_RANGE_4pF (3 << 6) |
#define AD7152_STATUS_C1C2 (1 << 2) |
#define AD7152_STATUS_PWDN (1 << 7) |
#define AD7152_STATUS_RDY1 (1 << 0) |
#define AD7152_STATUS_RDY2 (1 << 1) |
- Enumerator:
AD7152_DATA |
|
AD7152_OFFS |
|
AD7152_GAIN |
|
AD7152_SETUP |
|
Definition at line 73 of file ad7152.c.
MODULE_DESCRIPTION |
( |
"Analog Devices AD7152/3 capacitive sensor driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
ad7152_id |
|
|
) |
| |
module_i2c_driver |
( |
ad7152_driver |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|