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

Go to the source code of this file.

Data Structures

struct  ad7887_platform_data
 
struct  ad7887_chip_info
 
struct  ad7887_state
 

Macros

#define AD7887_REF_DIS   (1 << 5) /* on-chip reference disable */
 
#define AD7887_DUAL   (1 << 4) /* dual-channel mode */
 
#define AD7887_CH_AIN1   (1 << 3) /* convert on channel 1, DUAL=1 */
 
#define AD7887_CH_AIN0   (0 << 3) /* convert on channel 0, DUAL=0,1 */
 
#define AD7887_PM_MODE1   (0) /* CS based shutdown */
 
#define AD7887_PM_MODE2   (1) /* full on */
 
#define AD7887_PM_MODE3   (2) /* auto shutdown after conversion */
 
#define AD7887_PM_MODE4   (3) /* standby mode */
 
#define RES_MASK(bits)   ((1 << (bits)) - 1) /* TODO: move this into a common header */
 

Enumerations

enum  ad7887_channels { AD7887_CH0, AD7887_CH0_CH1, AD7887_CH1 }
 
enum  ad7887_supported_device_ids { ID_AD7887 }
 

Macro Definition Documentation

#define AD7887_CH_AIN0   (0 << 3) /* convert on channel 0, DUAL=0,1 */

Definition at line 14 of file ad7887.h.

#define AD7887_CH_AIN1   (1 << 3) /* convert on channel 1, DUAL=1 */

Definition at line 13 of file ad7887.h.

#define AD7887_DUAL   (1 << 4) /* dual-channel mode */

Definition at line 12 of file ad7887.h.

#define AD7887_PM_MODE1   (0) /* CS based shutdown */

Definition at line 15 of file ad7887.h.

#define AD7887_PM_MODE2   (1) /* full on */

Definition at line 16 of file ad7887.h.

#define AD7887_PM_MODE3   (2) /* auto shutdown after conversion */

Definition at line 17 of file ad7887.h.

#define AD7887_PM_MODE4   (3) /* standby mode */

Definition at line 18 of file ad7887.h.

#define AD7887_REF_DIS   (1 << 5) /* on-chip reference disable */

Definition at line 11 of file ad7887.h.

#define RES_MASK (   bits)    ((1 << (bits)) - 1) /* TODO: move this into a common header */

Definition at line 26 of file ad7887.h.

Enumeration Type Documentation

Enumerator:
AD7887_CH0 
AD7887_CH0_CH1 
AD7887_CH1 

Definition at line 20 of file ad7887.h.

Enumerator:
ID_AD7887 

Definition at line 80 of file ad7887.h.