|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/init.h>#include <linux/slab.h>#include <linux/jiffies.h>#include <linux/i2c.h>#include <linux/hwmon.h>#include <linux/hwmon-sysfs.h>#include <linux/err.h>#include <linux/mutex.h>Go to the source code of this file.
Data Structures | |
| struct | ads7828_data |
Macros | |
| #define | ADS7828_NCH 8 /* 8 channels of 12-bit A-D supported */ |
| #define | ADS7828_CMD_SD_SE 0x80 /* Single ended inputs */ |
| #define | ADS7828_CMD_SD_DIFF 0x00 /* Differential inputs */ |
| #define | ADS7828_CMD_PD0 0x0 /* Power Down between A-D conversions */ |
| #define | ADS7828_CMD_PD1 0x04 /* Internal ref OFF && A-D ON */ |
| #define | ADS7828_CMD_PD2 0x08 /* Internal ref ON && A-D OFF */ |
| #define | ADS7828_CMD_PD3 0x0C /* Internal ref ON && A-D ON */ |
| #define | ADS7828_INT_VREF_MV 2500 /* Internal vref is 2.5V, 2500mV */ |
| #define | in_reg(offset) |
Functions | |
| module_param (se_input, bool, S_IRUGO) | |
| module_param (int_vref, bool, S_IRUGO) | |
| module_param (vref_mv, int, S_IRUGO) | |
| in_reg (0) | |
| in_reg (1) | |
| in_reg (2) | |
| in_reg (3) | |
| in_reg (4) | |
| in_reg (5) | |
| in_reg (6) | |
| in_reg (7) | |
| MODULE_DEVICE_TABLE (i2c, ads7828_id) | |
| MODULE_AUTHOR ("Steve Hardy <[email protected]>") | |
| MODULE_DESCRIPTION ("ADS7828 driver") | |
| MODULE_LICENSE ("GPL") | |
| module_init (sensors_ads7828_init) | |
| module_exit (sensors_ads7828_exit) | |
| #define ADS7828_CMD_PD0 0x0 /* Power Down between A-D conversions */ |
| #define ADS7828_CMD_PD1 0x04 /* Internal ref OFF && A-D ON */ |
| #define ADS7828_CMD_PD2 0x08 /* Internal ref ON && A-D OFF */ |
| #define ADS7828_CMD_PD3 0x0C /* Internal ref ON && A-D ON */ |
| #define ADS7828_INT_VREF_MV 2500 /* Internal vref is 2.5V, 2500mV */ |
| #define in_reg | ( | offset | ) |
| in_reg | ( | 0 | ) |
| in_reg | ( | 1 | ) |
| in_reg | ( | 2 | ) |
| in_reg | ( | 3 | ) |
| in_reg | ( | 4 | ) |
| in_reg | ( | 5 | ) |
| in_reg | ( | 6 | ) |
| in_reg | ( | 7 | ) |
| MODULE_AUTHOR | ( | "Steve Hardy <[email protected]>" | ) |
| MODULE_DESCRIPTION | ( | "ADS7828 driver" | ) |
| MODULE_DEVICE_TABLE | ( | i2c | , |
| ads7828_id | |||
| ) |
| module_exit | ( | sensors_ads7828_exit | ) |
| module_init | ( | sensors_ads7828_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
1.8.2