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

Go to the source code of this file.

Macros

#define APCI035_BOARD_VENDOR_ID   0x15B8
 
#define APCI035_ADDRESS_RANGE   255
 
#define APCI035_TCW_SYNC_ENABLEDISABLE   0
 
#define APCI035_TCW_RELOAD_VALUE   4
 
#define APCI035_TCW_TIMEBASE   8
 
#define APCI035_TCW_PROG   12
 
#define APCI035_TCW_TRIG_STATUS   16
 
#define APCI035_TCW_IRQ   20
 
#define APCI035_TCW_WARN_TIMEVAL   24
 
#define APCI035_TCW_WARN_TIMEBASE   28
 
#define ADDIDATA_TIMER   0
 
#define APCI035_TW1   0
 
#define APCI035_TW2   32
 
#define APCI035_TW3   64
 
#define APCI035_TW4   96
 
#define APCI035_AI_OFFSET   0
 
#define APCI035_TEMP   128
 
#define APCI035_ALR_SEQ   4
 
#define APCI035_START_STOP_INDEX   8
 
#define APCI035_ALR_START_STOP   12
 
#define APCI035_ALR_IRQ   16
 
#define APCI035_EOS   20
 
#define APCI035_CHAN_NO   24
 
#define APCI035_CHAN_VAL   28
 
#define APCI035_CONV_TIME_TIME_BASE   36
 
#define APCI035_RELOAD_CONV_TIME_VAL   32
 
#define APCI035_DELAY_TIME_TIME_BASE   44
 
#define APCI035_RELOAD_DELAY_TIME_VAL   40
 
#define ENABLE_EXT_TRIG   1
 
#define ENABLE_EXT_GATE   2
 
#define ENABLE_EXT_TRIG_GATE   3
 
#define ANALOG_INPUT   0
 
#define TEMPERATURE   1
 
#define RESISTANCE   2
 
#define ADDIDATA_GREATER_THAN_TEST   0
 
#define ADDIDATA_LESS_THAN_TEST   1
 
#define APCI035_MAXVOLT   2.5
 
#define ADDIDATA_UNIPOLAR   1
 
#define ADDIDATA_BIPOLAR   2
 
#define ADDIDATA_ENABLE   1
 
#define ADDIDATA_DISABLE   0
 

Functions

int i_APCI035_ConfigTimerWatchdog (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI035_StartStopWriteTimerWatchdog (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI035_ReadTimerWatchdog (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI035_ConfigAnalogInput (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI035_ReadAnalogInput (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI035_Reset (struct comedi_device *dev)
 

Macro Definition Documentation

#define ADDIDATA_BIPOLAR   2

Definition at line 80 of file hwdrv_apci035.h.

#define ADDIDATA_DISABLE   0

Definition at line 84 of file hwdrv_apci035.h.

#define ADDIDATA_ENABLE   1

Definition at line 83 of file hwdrv_apci035.h.

#define ADDIDATA_GREATER_THAN_TEST   0

Definition at line 74 of file hwdrv_apci035.h.

#define ADDIDATA_LESS_THAN_TEST   1

Definition at line 75 of file hwdrv_apci035.h.

#define ADDIDATA_TIMER   0

Definition at line 45 of file hwdrv_apci035.h.

#define ADDIDATA_UNIPOLAR   1

Definition at line 79 of file hwdrv_apci035.h.

#define ANALOG_INPUT   0

Definition at line 70 of file hwdrv_apci035.h.

#define APCI035_ADDRESS_RANGE   255

Definition at line 20 of file hwdrv_apci035.h.

#define APCI035_AI_OFFSET   0

Definition at line 53 of file hwdrv_apci035.h.

#define APCI035_ALR_IRQ   16

Definition at line 58 of file hwdrv_apci035.h.

#define APCI035_ALR_SEQ   4

Definition at line 55 of file hwdrv_apci035.h.

#define APCI035_ALR_START_STOP   12

Definition at line 57 of file hwdrv_apci035.h.

#define APCI035_BOARD_VENDOR_ID   0x15B8

Definition at line 19 of file hwdrv_apci035.h.

#define APCI035_CHAN_NO   24

Definition at line 60 of file hwdrv_apci035.h.

#define APCI035_CHAN_VAL   28

Definition at line 61 of file hwdrv_apci035.h.

#define APCI035_CONV_TIME_TIME_BASE   36

Definition at line 62 of file hwdrv_apci035.h.

#define APCI035_DELAY_TIME_TIME_BASE   44

Definition at line 64 of file hwdrv_apci035.h.

#define APCI035_EOS   20

Definition at line 59 of file hwdrv_apci035.h.

#define APCI035_MAXVOLT   2.5

Definition at line 77 of file hwdrv_apci035.h.

#define APCI035_RELOAD_CONV_TIME_VAL   32

Definition at line 63 of file hwdrv_apci035.h.

#define APCI035_RELOAD_DELAY_TIME_VAL   40

Definition at line 65 of file hwdrv_apci035.h.

#define APCI035_START_STOP_INDEX   8

Definition at line 56 of file hwdrv_apci035.h.

#define APCI035_TCW_IRQ   20

Definition at line 41 of file hwdrv_apci035.h.

#define APCI035_TCW_PROG   12

Definition at line 39 of file hwdrv_apci035.h.

#define APCI035_TCW_RELOAD_VALUE   4

Definition at line 37 of file hwdrv_apci035.h.

#define APCI035_TCW_SYNC_ENABLEDISABLE   0

Definition at line 36 of file hwdrv_apci035.h.

#define APCI035_TCW_TIMEBASE   8

Definition at line 38 of file hwdrv_apci035.h.

#define APCI035_TCW_TRIG_STATUS   16

Definition at line 40 of file hwdrv_apci035.h.

#define APCI035_TCW_WARN_TIMEBASE   28

Definition at line 43 of file hwdrv_apci035.h.

#define APCI035_TCW_WARN_TIMEVAL   24

Definition at line 42 of file hwdrv_apci035.h.

#define APCI035_TEMP   128

Definition at line 54 of file hwdrv_apci035.h.

#define APCI035_TW1   0

Definition at line 48 of file hwdrv_apci035.h.

#define APCI035_TW2   32

Definition at line 49 of file hwdrv_apci035.h.

#define APCI035_TW3   64

Definition at line 50 of file hwdrv_apci035.h.

#define APCI035_TW4   96

Definition at line 51 of file hwdrv_apci035.h.

#define ENABLE_EXT_GATE   2

Definition at line 67 of file hwdrv_apci035.h.

#define ENABLE_EXT_TRIG   1

Definition at line 66 of file hwdrv_apci035.h.

#define ENABLE_EXT_TRIG_GATE   3

Definition at line 68 of file hwdrv_apci035.h.

#define RESISTANCE   2

Definition at line 72 of file hwdrv_apci035.h.

#define TEMPERATURE   1

Definition at line 71 of file hwdrv_apci035.h.

Function Documentation

int i_APCI035_ConfigAnalogInput ( struct comedi_device dev,
struct comedi_subdevice s,
struct comedi_insn insn,
unsigned int data 
)

Definition at line 456 of file hwdrv_apci035.c.

int i_APCI035_ConfigTimerWatchdog ( struct comedi_device dev,
struct comedi_subdevice s,
struct comedi_insn insn,
unsigned int data 
)

Enable the watchdog interrupt

Definition at line 112 of file hwdrv_apci035.c.

int i_APCI035_ReadAnalogInput ( struct comedi_device dev,
struct comedi_subdevice s,
struct comedi_insn insn,
unsigned int data 
)

Definition at line 493 of file hwdrv_apci035.c.

int i_APCI035_ReadTimerWatchdog ( struct comedi_device dev,
struct comedi_subdevice s,
struct comedi_insn insn,
unsigned int data 
)

Definition at line 396 of file hwdrv_apci035.c.

int i_APCI035_Reset ( struct comedi_device dev)

Definition at line 528 of file hwdrv_apci035.c.

int i_APCI035_StartStopWriteTimerWatchdog ( struct comedi_device dev,
struct comedi_subdevice s,
struct comedi_insn insn,
unsigned int data 
)

Definition at line 281 of file hwdrv_apci035.c.