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

Go to the source code of this file.

Data Structures

struct  max1363_mode
 
struct  max1363_chip_info
 
struct  max1363_state
 

Macros

#define MAX1363_SETUP_BYTE(a)   ((a) | 0x80)
 
#define MAX1363_SETUP_AIN3_IS_AIN3_REF_IS_VDD   0x00
 
#define MAX1363_SETUP_AIN3_IS_REF_EXT_TO_REF   0x20
 
#define MAX1363_SETUP_AIN3_IS_AIN3_REF_IS_INT   0x40
 
#define MAX1363_SETUP_AIN3_IS_REF_REF_IS_INT   0x60
 
#define MAX1363_SETUP_POWER_UP_INT_REF   0x10
 
#define MAX1363_SETUP_POWER_DOWN_INT_REF   0x00
 
#define MAX1363_SETUP_EXT_CLOCK   0x08
 
#define MAX1363_SETUP_INT_CLOCK   0x00
 
#define MAX1363_SETUP_UNIPOLAR   0x00
 
#define MAX1363_SETUP_BIPOLAR   0x04
 
#define MAX1363_SETUP_RESET   0x00
 
#define MAX1363_SETUP_NORESET   0x02
 
#define MAX1363_SETUP_MONITOR_SETUP   0x01
 
#define MAX1363_MON_RESET_CHAN(a)   (1 << ((a) + 4))
 
#define MAX1363_MON_INT_ENABLE   0x01
 
#define MAX1363_CONFIG_BYTE(a)   ((a))
 
#define MAX1363_CONFIG_SE   0x01
 
#define MAX1363_CONFIG_DE   0x00
 
#define MAX1363_CONFIG_SCAN_TO_CS   0x00
 
#define MAX1363_CONFIG_SCAN_SINGLE_8   0x20
 
#define MAX1363_CONFIG_SCAN_MONITOR_MODE   0x40
 
#define MAX1363_CONFIG_SCAN_SINGLE_1   0x60
 
#define MAX1236_SCAN_MID_TO_CHANNEL   0x40
 
#define MAX1363_CONFIG_EN_MON_MODE_READ   0x18
 
#define MAX1363_CHANNEL_SEL(a)   ((a) << 1)
 
#define MAX1363_CHANNEL_SEL_MASK   0x1E
 
#define MAX1363_SCAN_MASK   0x60
 
#define MAX1363_SE_DE_MASK   0x01
 
#define MAX1363_MAX_CHANNELS   25
 

Enumerations

enum  max1363_modes {
  _s0, _s1, _s2, _s3,
  _s4, _s5, _s6, _s7,
  _s8, _s9, _s10, _s11,
  d0m1, d2m3, d4m5, d6m7,
  d8m9, d10m11, d1m0, d3m2,
  d5m4, d7m6, d9m8, d11m10,
  s0to1, s0to2, s2to3, s0to3,
  s0to4, s0to5, s0to6, s6to7,
  s0to7, s6to8, s0to8, s6to9,
  s0to9, s6to10, s0to10, s6to11,
  s0to11, d0m1to2m3, d0m1to4m5, d0m1to6m7,
  d6m7to8m9, d0m1to8m9, d6m7to10m11, d0m1to10m11,
  d1m0to3m2, d1m0to5m4, d1m0to7m6, d7m6to9m8,
  d1m0to9m8, d7m6to11m10, d1m0to11m10
}
 

Functions

: indentification string for chip

struct max1363_chip_info - chip specifc information

: accuracy of the adc in bits : the internal reference voltage : iio core function callbacks structure : array of available scan modes : the number of scan modes available : the scan mode in which the chip starts up : channel specification : number of channels

struct max1363_modemax1363_match_mode (const unsigned long *mask, const struct max1363_chip_info *ci)
 
int max1363_set_scan_mode (struct max1363_state *st)
 
int max1363_update_scan_mode (struct iio_dev *indio_dev, const long *scan_mask)
 

Macro Definition Documentation

#define MAX1236_SCAN_MID_TO_CHANNEL   0x40

Definition at line 48 of file max1363.h.

#define MAX1363_CHANNEL_SEL (   a)    ((a) << 1)

Definition at line 53 of file max1363.h.

#define MAX1363_CHANNEL_SEL_MASK   0x1E

Definition at line 56 of file max1363.h.

#define MAX1363_CONFIG_BYTE (   a)    ((a))

Definition at line 39 of file max1363.h.

#define MAX1363_CONFIG_DE   0x00

Definition at line 42 of file max1363.h.

#define MAX1363_CONFIG_EN_MON_MODE_READ   0x18

Definition at line 51 of file max1363.h.

#define MAX1363_CONFIG_SCAN_MONITOR_MODE   0x40

Definition at line 45 of file max1363.h.

#define MAX1363_CONFIG_SCAN_SINGLE_1   0x60

Definition at line 46 of file max1363.h.

#define MAX1363_CONFIG_SCAN_SINGLE_8   0x20

Definition at line 44 of file max1363.h.

#define MAX1363_CONFIG_SCAN_TO_CS   0x00

Definition at line 43 of file max1363.h.

#define MAX1363_CONFIG_SE   0x01

Definition at line 41 of file max1363.h.

#define MAX1363_MAX_CHANNELS   25

Definition at line 60 of file max1363.h.

#define MAX1363_MON_INT_ENABLE   0x01

Definition at line 35 of file max1363.h.

#define MAX1363_MON_RESET_CHAN (   a)    (1 << ((a) + 4))

Definition at line 34 of file max1363.h.

#define MAX1363_SCAN_MASK   0x60

Definition at line 57 of file max1363.h.

#define MAX1363_SE_DE_MASK   0x01

Definition at line 58 of file max1363.h.

#define MAX1363_SETUP_AIN3_IS_AIN3_REF_IS_INT   0x40

Definition at line 14 of file max1363.h.

#define MAX1363_SETUP_AIN3_IS_AIN3_REF_IS_VDD   0x00

Definition at line 12 of file max1363.h.

#define MAX1363_SETUP_AIN3_IS_REF_EXT_TO_REF   0x20

Definition at line 13 of file max1363.h.

#define MAX1363_SETUP_AIN3_IS_REF_REF_IS_INT   0x60

Definition at line 15 of file max1363.h.

#define MAX1363_SETUP_BIPOLAR   0x04

Definition at line 23 of file max1363.h.

#define MAX1363_SETUP_BYTE (   a)    ((a) | 0x80)

Definition at line 4 of file max1363.h.

#define MAX1363_SETUP_EXT_CLOCK   0x08

Definition at line 20 of file max1363.h.

#define MAX1363_SETUP_INT_CLOCK   0x00

Definition at line 21 of file max1363.h.

#define MAX1363_SETUP_MONITOR_SETUP   0x01

Definition at line 31 of file max1363.h.

#define MAX1363_SETUP_NORESET   0x02

Definition at line 25 of file max1363.h.

#define MAX1363_SETUP_POWER_DOWN_INT_REF   0x00

Definition at line 17 of file max1363.h.

#define MAX1363_SETUP_POWER_UP_INT_REF   0x10

Definition at line 16 of file max1363.h.

#define MAX1363_SETUP_RESET   0x00

Definition at line 24 of file max1363.h.

#define MAX1363_SETUP_UNIPOLAR   0x00

Definition at line 22 of file max1363.h.

Enumeration Type Documentation

Enumerator:
_s0 
_s1 
_s2 
_s3 
_s4 
_s5 
_s6 
_s7 
_s8 
_s9 
_s10 
_s11 
d0m1 
d2m3 
d4m5 
d6m7 
d8m9 
d10m11 
d1m0 
d3m2 
d5m4 
d7m6 
d9m8 
d11m10 
s0to1 
s0to2 
s2to3 
s0to3 
s0to4 
s0to5 
s0to6 
s6to7 
s0to7 
s6to8 
s0to8 
s6to9 
s0to9 
s6to10 
s0to10 
s6to11 
s0to11 
d0m1to2m3 
d0m1to4m5 
d0m1to6m7 
d6m7to8m9 
d0m1to8m9 
d6m7to10m11 
d0m1to10m11 
d1m0to3m2 
d1m0to5m4 
d1m0to7m6 
d7m6to9m8 
d1m0to9m8 
d7m6to11m10 
d1m0to11m10 

Definition at line 72 of file max1363.h.

Function Documentation

struct max1363_mode* max1363_match_mode ( const unsigned long mask,
const struct max1363_chip_info ci 
)
read

Definition at line 152 of file max1363_core.c.

int max1363_set_scan_mode ( struct max1363_state st)

Definition at line 175 of file max1363_core.c.

int max1363_update_scan_mode ( struct iio_dev indio_dev,
const long scan_mask 
)

Definition at line 161 of file max1363.h.