Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ad7816.c File Reference
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/list.h>
#include <linux/spi/spi.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/iio/events.h>

Go to the source code of this file.

Data Structures

struct  ad7816_chip_info
 

Macros

#define AD7816_FULL   0x1
 
#define AD7816_PD   0x2
 
#define AD7816_CS_MASK   0x7
 
#define AD7816_CS_MAX   0x4
 
#define AD7816_VALUE_OFFSET   6
 
#define AD7816_BOUND_VALUE_BASE   0x8
 
#define AD7816_BOUND_VALUE_MIN   -95
 
#define AD7816_BOUND_VALUE_MAX   152
 
#define AD7816_TEMP_FLOAT_OFFSET   2
 
#define AD7816_TEMP_FLOAT_MASK   0x3
 
#define IIO_EVENT_CODE_AD7816_OTI
 

Functions

 MODULE_DEVICE_TABLE (spi, ad7816_id)
 
 module_spi_driver (ad7816_driver)
 
 MODULE_AUTHOR ("Sonic Zhang <[email protected]>")
 
 MODULE_DESCRIPTION ("Analog Devices AD7816/7/8 digital"" temperature sensor driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define AD7816_BOUND_VALUE_BASE   0x8

Definition at line 35 of file ad7816.c.

#define AD7816_BOUND_VALUE_MAX   152

Definition at line 37 of file ad7816.c.

#define AD7816_BOUND_VALUE_MIN   -95

Definition at line 36 of file ad7816.c.

#define AD7816_CS_MASK   0x7

Definition at line 28 of file ad7816.c.

#define AD7816_CS_MAX   0x4

Definition at line 29 of file ad7816.c.

#define AD7816_FULL   0x1

Definition at line 26 of file ad7816.c.

#define AD7816_PD   0x2

Definition at line 27 of file ad7816.c.

#define AD7816_TEMP_FLOAT_MASK   0x3

Definition at line 39 of file ad7816.c.

#define AD7816_TEMP_FLOAT_OFFSET   2

Definition at line 38 of file ad7816.c.

#define AD7816_VALUE_OFFSET   6

Definition at line 34 of file ad7816.c.

#define IIO_EVENT_CODE_AD7816_OTI
Value:

Definition at line 251 of file ad7816.c.

Function Documentation

MODULE_AUTHOR ( "Sonic Zhang <[email protected]>"  )
MODULE_DESCRIPTION ( "Analog Devices AD7816/7/8 digital"" temperature sensor driver )
MODULE_DEVICE_TABLE ( spi  ,
ad7816_id   
)
MODULE_LICENSE ( "GPL v2 )
module_spi_driver ( ad7816_driver  )