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

Go to the source code of this file.

Macros

#define APCI1564_BOARD_VENDOR_ID   0x15B8
 
#define APCI1564_ADDRESS_RANGE   128
 
#define APCI1564_DIGITAL_IP   0x04
 
#define APCI1564_DIGITAL_IP_INTERRUPT_MODE1   4
 
#define APCI1564_DIGITAL_IP_INTERRUPT_MODE2   8
 
#define APCI1564_DIGITAL_IP_IRQ   16
 
#define APCI1564_DIGITAL_OP   0x18
 
#define APCI1564_DIGITAL_OP_RW   0
 
#define APCI1564_DIGITAL_OP_INTERRUPT   4
 
#define APCI1564_DIGITAL_OP_IRQ   12
 
#define ADDIDATA_OR   0
 
#define ADDIDATA_AND   1
 
#define APCI1564_DIGITAL_IP_INTERRUPT_STATUS   12
 
#define APCI1564_DIGITAL_OP_INTERRUPT_STATUS   8
 
#define APCI1564_DIGITAL_IP_INTERRUPT_ENABLE   0x4
 
#define APCI1564_DIGITAL_IP_INTERRUPT_DISABLE   0xFFFFFFFB
 
#define APCI1564_DIGITAL_OP_VCC_INTERRUPT_ENABLE   0x1
 
#define APCI1564_DIGITAL_OP_VCC_INTERRUPT_DISABLE   0xFFFFFFFE
 
#define APCI1564_DIGITAL_OP_CC_INTERRUPT_ENABLE   0x2
 
#define APCI1564_DIGITAL_OP_CC_INTERRUPT_DISABLE   0xFFFFFFFD
 
#define ADDIDATA_ENABLE   1
 
#define ADDIDATA_DISABLE   0
 
#define ADDIDATA_TIMER   0
 
#define ADDIDATA_COUNTER   1
 
#define ADDIDATA_WATCHDOG   2
 
#define APCI1564_DIGITAL_OP_WATCHDOG   0x28
 
#define APCI1564_TIMER   0x48
 
#define APCI1564_COUNTER1   0x0
 
#define APCI1564_COUNTER2   0x20
 
#define APCI1564_COUNTER3   0x40
 
#define APCI1564_COUNTER4   0x60
 
#define APCI1564_TCW_SYNC_ENABLEDISABLE   0
 
#define APCI1564_TCW_RELOAD_VALUE   4
 
#define APCI1564_TCW_TIMEBASE   8
 
#define APCI1564_TCW_PROG   12
 
#define APCI1564_TCW_TRIG_STATUS   16
 
#define APCI1564_TCW_IRQ   20
 
#define APCI1564_TCW_WARN_TIMEVAL   24
 
#define APCI1564_TCW_WARN_TIMEBASE   28
 

Functions

int i_APCI1564_ConfigDigitalInput (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_Read1DigitalInput (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_ReadMoreDigitalInput (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_ConfigDigitalOutput (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_WriteDigitalOutput (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_ReadDigitalOutput (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_ReadInterruptStatus (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_ConfigTimerCounterWatchdog (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_StartStopWriteTimerCounterWatchdog (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_ReadTimerCounterWatchdog (struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
 
int i_APCI1564_Reset (struct comedi_device *dev)
 

Macro Definition Documentation

#define ADDIDATA_AND   1

Definition at line 38 of file hwdrv_apci1564.h.

#define ADDIDATA_COUNTER   1

Definition at line 64 of file hwdrv_apci1564.h.

#define ADDIDATA_DISABLE   0

Definition at line 59 of file hwdrv_apci1564.h.

#define ADDIDATA_ENABLE   1

Definition at line 58 of file hwdrv_apci1564.h.

#define ADDIDATA_OR   0

Definition at line 37 of file hwdrv_apci1564.h.

#define ADDIDATA_TIMER   0

Definition at line 63 of file hwdrv_apci1564.h.

#define ADDIDATA_WATCHDOG   2

Definition at line 65 of file hwdrv_apci1564.h.

#define APCI1564_ADDRESS_RANGE   128

Definition at line 21 of file hwdrv_apci1564.h.

#define APCI1564_BOARD_VENDOR_ID   0x15B8

Definition at line 20 of file hwdrv_apci1564.h.

#define APCI1564_COUNTER1   0x0

Definition at line 68 of file hwdrv_apci1564.h.

#define APCI1564_COUNTER2   0x20

Definition at line 69 of file hwdrv_apci1564.h.

#define APCI1564_COUNTER3   0x40

Definition at line 70 of file hwdrv_apci1564.h.

#define APCI1564_COUNTER4   0x60

Definition at line 71 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_IP   0x04

Definition at line 25 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_IP_INTERRUPT_DISABLE   0xFFFFFFFB

Definition at line 48 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_IP_INTERRUPT_ENABLE   0x4

Definition at line 47 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_IP_INTERRUPT_MODE1   4

Definition at line 26 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_IP_INTERRUPT_MODE2   8

Definition at line 27 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_IP_INTERRUPT_STATUS   12

Definition at line 41 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_IP_IRQ   16

Definition at line 28 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP   0x18

Definition at line 31 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_CC_INTERRUPT_DISABLE   0xFFFFFFFD

Definition at line 54 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_CC_INTERRUPT_ENABLE   0x2

Definition at line 53 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_INTERRUPT   4

Definition at line 33 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_INTERRUPT_STATUS   8

Definition at line 44 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_IRQ   12

Definition at line 34 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_RW   0

Definition at line 32 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_VCC_INTERRUPT_DISABLE   0xFFFFFFFE

Definition at line 52 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_VCC_INTERRUPT_ENABLE   0x1

Definition at line 51 of file hwdrv_apci1564.h.

#define APCI1564_DIGITAL_OP_WATCHDOG   0x28

Definition at line 66 of file hwdrv_apci1564.h.

#define APCI1564_TCW_IRQ   20

Definition at line 77 of file hwdrv_apci1564.h.

#define APCI1564_TCW_PROG   12

Definition at line 75 of file hwdrv_apci1564.h.

#define APCI1564_TCW_RELOAD_VALUE   4

Definition at line 73 of file hwdrv_apci1564.h.

#define APCI1564_TCW_SYNC_ENABLEDISABLE   0

Definition at line 72 of file hwdrv_apci1564.h.

#define APCI1564_TCW_TIMEBASE   8

Definition at line 74 of file hwdrv_apci1564.h.

#define APCI1564_TCW_TRIG_STATUS   16

Definition at line 76 of file hwdrv_apci1564.h.

#define APCI1564_TCW_WARN_TIMEBASE   28

Definition at line 79 of file hwdrv_apci1564.h.

#define APCI1564_TCW_WARN_TIMEVAL   24

Definition at line 78 of file hwdrv_apci1564.h.

#define APCI1564_TIMER   0x48

Definition at line 67 of file hwdrv_apci1564.h.

Function Documentation

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

Definition at line 89 of file hwdrv_apci1564.c.

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

Definition at line 260 of file hwdrv_apci1564.c.

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

Definition at line 569 of file hwdrv_apci1564.c.

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

Definition at line 150 of file hwdrv_apci1564.c.

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

Definition at line 491 of file hwdrv_apci1564.c.

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

Definition at line 897 of file hwdrv_apci1564.c.

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

Definition at line 192 of file hwdrv_apci1564.c.

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

Definition at line 818 of file hwdrv_apci1564.c.

int i_APCI1564_Reset ( struct comedi_device dev)

Definition at line 1107 of file hwdrv_apci1564.c.

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

Definition at line 723 of file hwdrv_apci1564.c.

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

Definition at line 317 of file hwdrv_apci1564.c.