Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 02e7bc50735df2e365110343fbf39739 > files > 11

comedilib-devel-0.8.1-7.fc14.x86_64.rpm

#!/bin/sh
# Configuration for dt282x driver
# ds

### Device file
DEVICE=/dev/comedi0


### Type of board
###   Choose one
BOARD=dt2821		# also for -f-16se, -g-16se, etc.
#BOARD=dt2823
#BOARD=dt2824-pgh
#BOARD=dt2824-pgl
#BOARD=dt2825
#BOARD=dt2827
#BOARD=dt2828
#BOARD=dt21-ez
#BOARD=dt23-ez
#BOARD=dt24-ez
#BOARD=dt24-ez-pgl


### Option 0:	Board base address
###   Depends on jumper settings
IOBASE=0x240


### Option 1:	IRQ
###   Depends on jumper settings
###   Choose one
#IRQ=0		# don't use interrupts
#IRQ=3
#IRQ=5
IRQ=7
#IRQ=10
#IRQ=15


### Option 2:	first DMA channel
###   Depends on jumper settings
###   Choose one
DMA1=0		# don't use DMA
#DMA1=5
#DMA1=6


### Option 3:	second DMA channel
###   Depends on jumper settings
###   Choose one
DMA2=0		# don't use secondary DMA
#DMA2=6
#DMA2=7


### Option 4:	Analog Input reference
###   Depends on jumper settings or type of board
###   Choose one
AI_REF=0	# differential
#AI_REF=1	# single ended


### Option 5:	Analog Input encoding
###   Depends on jumper settings
###   Choose one
AI_ENCODE=0	# straight binary
#AI_ENCODE=1	# two's complement


### Option 6:	Analog Output 0 encoding
###   Depends on jumper settings
###   Choose one
A00_ENCODE=0	# straight binary
#AO0_ENCODE=1	# two's complement


### Option 7:	Analog Output 1 encoding
###   Depends on jumper settings
###   Choose one
AO1_ENCODE=0	# straight binary
#AO1_ENCODE=1	# two's complement


### Option 8:	Analog Input Range
###   Depends on jumper settings
###   Choose one
#AI_RANGE=0	# bipolar +/- 10 V
#AI_RANGE=1	# unipolar 0-10 V
#AI_RANGE=2	# bipolar +/- 5 V
#AI_RANGE=3	# unipolar 0-5 V


### Option 9:	Analog Output 0 Range
###   Depends on jumper settings
###   Choose one
#AO0_RANGE=0	# bipolar +/- 10 V
#AO0_RANGE=1	# unipolar 0-10 V
#AO0_RANGE=2	# bipolar +/- 5 V
#AO0_RANGE=3	# unipolar 0-5 V
#AO0_RANGE=4	# bipolar +/- 2.5 V
 

### Option 10:	Analog Output 1 Range
###   Depends on jumper settings
###   Choose one
#AO1_RANGE=0	# bipolar +/- 10 V
#AO1_RANGE=1	# unipolar 0-10 V
#AO1_RANGE=2	# bipolar +/- 5 V
#AO1_RANGE=3	# unipolar 0-5 V
#AO1_RANGE=4	# bipolar +/- 2.5 V
 

#-----------------------------------------------------------
# End of Configuration
#-----------------------------------------------------------


/usr/sbin/comedi_config $DEVICE $BOARD $IOBASE,$IRQ,$DMA1,$DMA2,$AI_REF,$AI_ENCODE,$AO0_ENCODE,$AO1_ENCODE,$AI_REF,$AO0_REF,$AI1_REF