#include <linux/module.h>
#include <linux/init.h>
#include <linux/spi/spi.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/delay.h>
Go to the source code of this file.
#define DEVICE_NAME "ads7871" |
#define INST_16BIT_bm (1<<5) |
#define INST_MODE_bm (1<<7) |
#define INST_READ_bm (1<<6) |
#define MUX_G_bv 4 /*allows for reg = (gain << MUX_G_bv) | ...*/ |
#define MUX_M3_bm (1<<3) /*M3 selects single ended*/ |
#define OSC_BUFE_bm (1<<2) |
#define OSC_OSCE_bm (1<<4) |
#define OSC_OSCR_bm (1<<5) |
#define OSC_R2V_bm (1<<1) |
#define OSC_RBG_bm (1<<0) |
#define OSC_REFE_bm (1<<3) |
#define REG_GAIN_MUX 4 /*Gain/Mux Register*/ |
#define REG_IO_STATE 5 /*Digital I/O State Register*/ |
#define REG_PGA_VALID 2 /*PGA Valid Register*/ |
MODULE_DESCRIPTION |
( |
"TI ADS7871 A/D driver" |
| ) |
|
module_spi_driver |
( |
ads7871_driver |
| ) |
|