Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ad7298.h File Reference

Go to the source code of this file.

Data Structures

struct  ad7298_platform_data
 
struct  ad7298_state
 

Macros

#define AD7298_WRITE   (1 << 15) /* write to the control register */
 
#define AD7298_REPEAT   (1 << 14) /* repeated conversion enable */
 
#define AD7298_CH(x)   (1 << (13 - (x))) /* channel select */
 
#define AD7298_TSENSE   (1 << 5) /* temperature conversion enable */
 
#define AD7298_EXTREF   (1 << 2) /* external reference enable */
 
#define AD7298_TAVG   (1 << 1) /* temperature sensor averaging enable */
 
#define AD7298_PDD   (1 << 0) /* partial power down enable */
 
#define AD7298_MAX_CHAN   8
 
#define AD7298_BITS   12
 
#define AD7298_STORAGE_BITS   16
 
#define AD7298_INTREF_mV   2500
 
#define AD7298_CH_TEMP   9
 
#define RES_MASK(bits)   ((1 << (bits)) - 1)
 
#define ad7298_update_scan_mode   NULL
 

Macro Definition Documentation

#define AD7298_BITS   12

Definition at line 21 of file ad7298.h.

#define AD7298_CH (   x)    (1 << (13 - (x))) /* channel select */

Definition at line 14 of file ad7298.h.

#define AD7298_CH_TEMP   9

Definition at line 25 of file ad7298.h.

#define AD7298_EXTREF   (1 << 2) /* external reference enable */

Definition at line 16 of file ad7298.h.

#define AD7298_INTREF_mV   2500

Definition at line 23 of file ad7298.h.

#define AD7298_MAX_CHAN   8

Definition at line 20 of file ad7298.h.

#define AD7298_PDD   (1 << 0) /* partial power down enable */

Definition at line 18 of file ad7298.h.

#define AD7298_REPEAT   (1 << 14) /* repeated conversion enable */

Definition at line 13 of file ad7298.h.

#define AD7298_STORAGE_BITS   16

Definition at line 22 of file ad7298.h.

#define AD7298_TAVG   (1 << 1) /* temperature sensor averaging enable */

Definition at line 17 of file ad7298.h.

#define AD7298_TSENSE   (1 << 5) /* temperature conversion enable */

Definition at line 15 of file ad7298.h.

#define ad7298_update_scan_mode   NULL

Definition at line 72 of file ad7298.h.

#define AD7298_WRITE   (1 << 15) /* write to the control register */

Definition at line 12 of file ad7298.h.

#define RES_MASK (   bits)    ((1 << (bits)) - 1)

Definition at line 27 of file ad7298.h.