Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
multiq3.c File Reference
#include <linux/interrupt.h>
#include "../comedidev.h"
#include <linux/ioport.h>

Go to the source code of this file.

Data Structures

struct  multiq3_private
 

Macros

#define MULTIQ3_SIZE   16
 
#define MULTIQ3_DIGIN_PORT   0
 
#define MULTIQ3_DIGOUT_PORT   0
 
#define MULTIQ3_DAC_DATA   2
 
#define MULTIQ3_AD_DATA   4
 
#define MULTIQ3_AD_CS   4
 
#define MULTIQ3_STATUS   6
 
#define MULTIQ3_CONTROL   6
 
#define MULTIQ3_CLK_DATA   8
 
#define MULTIQ3_ENC_DATA   12
 
#define MULTIQ3_ENC_CONTROL   14
 
#define MULTIQ3_AD_MUX_EN   0x0040
 
#define MULTIQ3_AD_AUTOZ   0x0080
 
#define MULTIQ3_AD_AUTOCAL   0x0100
 
#define MULTIQ3_AD_SH   0x0200
 
#define MULTIQ3_AD_CLOCK_4M   0x0400
 
#define MULTIQ3_DA_LOAD   0x1800
 
#define MULTIQ3_CONTROL_MUST   0x0600
 
#define MULTIQ3_STATUS_EOC   0x008
 
#define MULTIQ3_STATUS_EOC_I   0x010
 
#define MULTIQ3_CLOCK_DATA   0x00
 
#define MULTIQ3_CLOCK_SETUP   0x18
 
#define MULTIQ3_INPUT_SETUP   0x41
 
#define MULTIQ3_QUAD_X4   0x38
 
#define MULTIQ3_BP_RESET   0x01
 
#define MULTIQ3_CNTR_RESET   0x02
 
#define MULTIQ3_TRSFRPR_CTR   0x08
 
#define MULTIQ3_TRSFRCNTR_OL   0x10
 
#define MULTIQ3_EFLAG_RESET   0x06
 
#define MULTIQ3_TIMEOUT   30
 
#define devpriv   ((struct multiq3_private *)dev->private)
 

Functions

 module_comedi_driver (multiq3_driver)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define devpriv   ((struct multiq3_private *)dev->private)

Definition at line 89 of file multiq3.c.

#define MULTIQ3_AD_AUTOCAL   0x0100

Definition at line 58 of file multiq3.c.

#define MULTIQ3_AD_AUTOZ   0x0080

Definition at line 57 of file multiq3.c.

#define MULTIQ3_AD_CLOCK_4M   0x0400

Definition at line 60 of file multiq3.c.

#define MULTIQ3_AD_CS   4

Definition at line 46 of file multiq3.c.

#define MULTIQ3_AD_DATA   4

Definition at line 45 of file multiq3.c.

#define MULTIQ3_AD_MUX_EN   0x0040

Definition at line 56 of file multiq3.c.

#define MULTIQ3_AD_SH   0x0200

Definition at line 59 of file multiq3.c.

#define MULTIQ3_BP_RESET   0x01

Definition at line 78 of file multiq3.c.

#define MULTIQ3_CLK_DATA   8

Definition at line 49 of file multiq3.c.

#define MULTIQ3_CLOCK_DATA   0x00

Definition at line 74 of file multiq3.c.

#define MULTIQ3_CLOCK_SETUP   0x18

Definition at line 75 of file multiq3.c.

#define MULTIQ3_CNTR_RESET   0x02

Definition at line 79 of file multiq3.c.

#define MULTIQ3_CONTROL   6

Definition at line 48 of file multiq3.c.

#define MULTIQ3_CONTROL_MUST   0x0600

Definition at line 63 of file multiq3.c.

#define MULTIQ3_DA_LOAD   0x1800

Definition at line 61 of file multiq3.c.

#define MULTIQ3_DAC_DATA   2

Definition at line 44 of file multiq3.c.

#define MULTIQ3_DIGIN_PORT   0

Definition at line 42 of file multiq3.c.

#define MULTIQ3_DIGOUT_PORT   0

Definition at line 43 of file multiq3.c.

#define MULTIQ3_EFLAG_RESET   0x06

Definition at line 82 of file multiq3.c.

#define MULTIQ3_ENC_CONTROL   14

Definition at line 51 of file multiq3.c.

#define MULTIQ3_ENC_DATA   12

Definition at line 50 of file multiq3.c.

#define MULTIQ3_INPUT_SETUP   0x41

Definition at line 76 of file multiq3.c.

#define MULTIQ3_QUAD_X4   0x38

Definition at line 77 of file multiq3.c.

#define MULTIQ3_SIZE   16

Definition at line 37 of file multiq3.c.

#define MULTIQ3_STATUS   6

Definition at line 47 of file multiq3.c.

#define MULTIQ3_STATUS_EOC   0x008

Definition at line 68 of file multiq3.c.

#define MULTIQ3_STATUS_EOC_I   0x010

Definition at line 69 of file multiq3.c.

#define MULTIQ3_TIMEOUT   30

Definition at line 84 of file multiq3.c.

#define MULTIQ3_TRSFRCNTR_OL   0x10

Definition at line 81 of file multiq3.c.

#define MULTIQ3_TRSFRPR_CTR   0x08

Definition at line 80 of file multiq3.c.

Function Documentation

MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
module_comedi_driver ( multiq3_driver  )
MODULE_DESCRIPTION ( "Comedi low-level driver )
MODULE_LICENSE ( "GPL"  )