Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ds1621.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>
#include <linux/sysfs.h>
#include "lm75.h"

Go to the source code of this file.

Data Structures

struct  ds1621_data
 

Macros

#define DS1621_REG_CONFIG_NVB   0x10
 
#define DS1621_REG_CONFIG_POLARITY   0x02
 
#define DS1621_REG_CONFIG_1SHOT   0x01
 
#define DS1621_REG_CONFIG_DONE   0x80
 
#define DS1621_REG_CONF   0xAC /* byte, RW */
 
#define DS1621_COM_START   0xEE /* no data */
 
#define DS1621_COM_STOP   0x22 /* no data */
 
#define DS1621_ALARM_TEMP_HIGH   0x40
 
#define DS1621_ALARM_TEMP_LOW   0x20
 
#define ALARMS_FROM_REG(val)
 

Functions

 module_param (polarity, int, 0)
 
 MODULE_PARM_DESC (polarity,"Output's polarity: 0 = active high, 1 = active low")
 
 MODULE_DEVICE_TABLE (i2c, ds1621_id)
 
 module_i2c_driver (ds1621_driver)
 
 MODULE_AUTHOR ("Christian W. Zuckschwerdt <[email protected]>")
 
 MODULE_DESCRIPTION ("DS1621 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ALARMS_FROM_REG (   val)
Value:

Definition at line 69 of file ds1621.c.

#define DS1621_ALARM_TEMP_HIGH   0x40

Definition at line 65 of file ds1621.c.

#define DS1621_ALARM_TEMP_LOW   0x20

Definition at line 66 of file ds1621.c.

#define DS1621_COM_START   0xEE /* no data */

Definition at line 61 of file ds1621.c.

#define DS1621_COM_STOP   0x22 /* no data */

Definition at line 62 of file ds1621.c.

#define DS1621_REG_CONF   0xAC /* byte, RW */

Definition at line 60 of file ds1621.c.

#define DS1621_REG_CONFIG_1SHOT   0x01

Definition at line 51 of file ds1621.c.

#define DS1621_REG_CONFIG_DONE   0x80

Definition at line 52 of file ds1621.c.

#define DS1621_REG_CONFIG_NVB   0x10

Definition at line 49 of file ds1621.c.

#define DS1621_REG_CONFIG_POLARITY   0x02

Definition at line 50 of file ds1621.c.

Function Documentation

MODULE_AUTHOR ( "Christian W. Zuckschwerdt <[email protected]>"  )
MODULE_DESCRIPTION ( "DS1621 driver )
MODULE_DEVICE_TABLE ( i2c  ,
ds1621_id   
)
module_i2c_driver ( ds1621_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( polarity  ,
int  ,
 
)
MODULE_PARM_DESC ( polarity  ,
"Output's polarity:  0 = active high 
)