Comedi - The Linux Control and Measurement Interface

ISApnp measuring devices

# $Id: pnpdump.c,v 1.16 1998/10/09 22:19:06 fox Exp $
# Compiler flags: -DREALTIME -DNEEDSETSCHEDULER
#
# LD n = Logical device, ie write to reg 7
# IO n = IO descriptor n
# BASE n = IO/Mem address
# INT n = Interrupt req n
# IRQ n = Interrupt level
# MODE = line levels etc
# ACT = Activate
 
# Trying port address 0203
# Board 1 has serial identifier 9d 00 ad 3a a3 00 24 23 39

# (DEBUG)
(READPORT 0x0203)
(ISOLATE PRESERVE)
(IDENTIFY *)
 
# ANSI string -->National Instruments, AT-MIO-16E-10<--
 
(CONFIGURE NIC2400/11352739 (LD 0
        (IO 0 (BASE 0x0220))
#       (INT 0 (IRQ 3 (MODE +E)))
#       (DMA 0 (CHANNEL 5))
#       (DMA 1 (CHANNEL 6))
        (ACT Y)
))
 
# Returns all cards to the "Wait for Key" state
(CONFIGURE ESS0968/1 (LD 1
#     Fixed IO base address 0x0201
#         Number of IO addresses required: 1
(IO 0 (SIZE 1) (BASE 0x0201))
(ACT Y)
))
# End tag... Checksum 0x00 (OK)
(WAITFORKEY)

I know I've mentioned a few trademarks, they're owned by their owners.
This page copyright © 2001 by Michael Renner. Consider it licensed under the GPL.