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

Go to the source code of this file.

Data Structures

struct  ad799x_chip_info
 
struct  ad799x_state
 
struct  ad799x_platform_data
 

Macros

#define AD799X_CHANNEL_SHIFT   4
 
#define AD799X_STORAGEBITS   16
 
#define AD7991_REF_SEL   0x08
 
#define AD7991_FLTR   0x04
 
#define AD7991_BIT_TRIAL_DELAY   0x02
 
#define AD7991_SAMPLE_DELAY   0x01
 
#define AD7998_FLTR   0x08
 
#define AD7998_ALERT_EN   0x04
 
#define AD7998_BUSY_ALERT   0x02
 
#define AD7998_BUSY_ALERT_POL   0x01
 
#define AD7998_CONV_RES_REG   0x0
 
#define AD7998_ALERT_STAT_REG   0x1
 
#define AD7998_CONF_REG   0x2
 
#define AD7998_CYCLE_TMR_REG   0x3
 
#define AD7998_DATALOW_CH1_REG   0x4
 
#define AD7998_DATAHIGH_CH1_REG   0x5
 
#define AD7998_HYST_CH1_REG   0x6
 
#define AD7998_DATALOW_CH2_REG   0x7
 
#define AD7998_DATAHIGH_CH2_REG   0x8
 
#define AD7998_HYST_CH2_REG   0x9
 
#define AD7998_DATALOW_CH3_REG   0xA
 
#define AD7998_DATAHIGH_CH3_REG   0xB
 
#define AD7998_HYST_CH3_REG   0xC
 
#define AD7998_DATALOW_CH4_REG   0xD
 
#define AD7998_DATAHIGH_CH4_REG   0xE
 
#define AD7998_HYST_CH4_REG   0xF
 
#define AD7998_CYC_MASK   0x7
 
#define AD7998_CYC_DIS   0x0
 
#define AD7998_CYC_TCONF_32   0x1
 
#define AD7998_CYC_TCONF_64   0x2
 
#define AD7998_CYC_TCONF_128   0x3
 
#define AD7998_CYC_TCONF_256   0x4
 
#define AD7998_CYC_TCONF_512   0x5
 
#define AD7998_CYC_TCONF_1024   0x6
 
#define AD7998_CYC_TCONF_2048   0x7
 
#define AD7998_ALERT_STAT_CLEAR   0xFF
 
#define AD7997_8_READ_SINGLE   0x80
 
#define AD7997_8_READ_SEQUENCE   0x70
 
#define RES_MASK(bits)   ((1 << (bits)) - 1)
 

Enumerations

enum  {
  ad7991, ad7995, ad7999, ad7992,
  ad7993, ad7994, ad7997, ad7998
}
 

Macro Definition Documentation

#define AD7991_BIT_TRIAL_DELAY   0x02

Definition at line 23 of file ad799x.h.

#define AD7991_FLTR   0x04

Definition at line 22 of file ad799x.h.

#define AD7991_REF_SEL   0x08

Definition at line 21 of file ad799x.h.

#define AD7991_SAMPLE_DELAY   0x01

Definition at line 24 of file ad799x.h.

#define AD7997_8_READ_SEQUENCE   0x70

Definition at line 69 of file ad799x.h.

#define AD7997_8_READ_SINGLE   0x80

Definition at line 68 of file ad799x.h.

#define AD7998_ALERT_EN   0x04

Definition at line 31 of file ad799x.h.

#define AD7998_ALERT_STAT_CLEAR   0xFF

Definition at line 62 of file ad799x.h.

#define AD7998_ALERT_STAT_REG   0x1

Definition at line 36 of file ad799x.h.

#define AD7998_BUSY_ALERT   0x02

Definition at line 32 of file ad799x.h.

#define AD7998_BUSY_ALERT_POL   0x01

Definition at line 33 of file ad799x.h.

#define AD7998_CONF_REG   0x2

Definition at line 37 of file ad799x.h.

#define AD7998_CONV_RES_REG   0x0

Definition at line 35 of file ad799x.h.

#define AD7998_CYC_DIS   0x0

Definition at line 53 of file ad799x.h.

#define AD7998_CYC_MASK   0x7

Definition at line 52 of file ad799x.h.

#define AD7998_CYC_TCONF_1024   0x6

Definition at line 59 of file ad799x.h.

#define AD7998_CYC_TCONF_128   0x3

Definition at line 56 of file ad799x.h.

#define AD7998_CYC_TCONF_2048   0x7

Definition at line 60 of file ad799x.h.

#define AD7998_CYC_TCONF_256   0x4

Definition at line 57 of file ad799x.h.

#define AD7998_CYC_TCONF_32   0x1

Definition at line 54 of file ad799x.h.

#define AD7998_CYC_TCONF_512   0x5

Definition at line 58 of file ad799x.h.

#define AD7998_CYC_TCONF_64   0x2

Definition at line 55 of file ad799x.h.

#define AD7998_CYCLE_TMR_REG   0x3

Definition at line 38 of file ad799x.h.

#define AD7998_DATAHIGH_CH1_REG   0x5

Definition at line 40 of file ad799x.h.

#define AD7998_DATAHIGH_CH2_REG   0x8

Definition at line 43 of file ad799x.h.

#define AD7998_DATAHIGH_CH3_REG   0xB

Definition at line 46 of file ad799x.h.

#define AD7998_DATAHIGH_CH4_REG   0xE

Definition at line 49 of file ad799x.h.

#define AD7998_DATALOW_CH1_REG   0x4

Definition at line 39 of file ad799x.h.

#define AD7998_DATALOW_CH2_REG   0x7

Definition at line 42 of file ad799x.h.

#define AD7998_DATALOW_CH3_REG   0xA

Definition at line 45 of file ad799x.h.

#define AD7998_DATALOW_CH4_REG   0xD

Definition at line 48 of file ad799x.h.

#define AD7998_FLTR   0x08

Definition at line 30 of file ad799x.h.

#define AD7998_HYST_CH1_REG   0x6

Definition at line 41 of file ad799x.h.

#define AD7998_HYST_CH2_REG   0x9

Definition at line 44 of file ad799x.h.

#define AD7998_HYST_CH3_REG   0xC

Definition at line 47 of file ad799x.h.

#define AD7998_HYST_CH4_REG   0xF

Definition at line 50 of file ad799x.h.

#define AD799X_CHANNEL_SHIFT   4

Definition at line 15 of file ad799x.h.

#define AD799X_STORAGEBITS   16

Definition at line 16 of file ad799x.h.

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

Definition at line 71 of file ad799x.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
ad7991 
ad7995 
ad7999 
ad7992 
ad7993 
ad7994 
ad7997 
ad7998 

Definition at line 73 of file ad799x.h.