Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ads7828.c File Reference
#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)
 

Macro Definition Documentation

#define ADS7828_CMD_PD0   0x0 /* Power Down between A-D conversions */

Definition at line 40 of file ads7828.c.

#define ADS7828_CMD_PD1   0x04 /* Internal ref OFF && A-D ON */

Definition at line 41 of file ads7828.c.

#define ADS7828_CMD_PD2   0x08 /* Internal ref ON && A-D OFF */

Definition at line 42 of file ads7828.c.

#define ADS7828_CMD_PD3   0x0C /* Internal ref ON && A-D ON */

Definition at line 43 of file ads7828.c.

#define ADS7828_CMD_SD_DIFF   0x00 /* Differential inputs */

Definition at line 39 of file ads7828.c.

#define ADS7828_CMD_SD_SE   0x80 /* Single ended inputs */

Definition at line 38 of file ads7828.c.

#define ADS7828_INT_VREF_MV   2500 /* Internal vref is 2.5V, 2500mV */

Definition at line 44 of file ads7828.c.

#define ADS7828_NCH   8 /* 8 channels of 12-bit A-D supported */

Definition at line 37 of file ads7828.c.

#define in_reg (   offset)
Value:

Definition at line 123 of file ads7828.c.

Function Documentation

in_reg ( )
in_reg ( )
in_reg ( )
in_reg ( )
in_reg ( )
in_reg ( )
in_reg ( )
in_reg ( )
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"  )
module_param ( se_input  ,
bool  ,
S_IRUGO   
)
module_param ( int_vref  ,
bool  ,
S_IRUGO   
)
module_param ( vref_mv  ,
int  ,
S_IRUGO   
)