Simple Driver for MCC Quad04

Hi,

Several people have ask about a driver for the Measurement
Computing QUAD04 boards.  Attached is the simple one I came
up with. There are two drivers, one for the PCI version
(pci_quad04.c) and one for the ISA version (cio_quad04.c)

The drivers are NOT comedi drivers. They provide very basic
access to the four counters through the files /proc/quad04/cntr_#.
Aside from the code there is currently NO documentation. General
usage is very simple,

	insmod pci_quad04.o

	cat /proc/quad04/cntr_1
	cntr_1: pulses=23456 UP

	cat /proc/quad04/cntr_1
	cntr_1: pulses=3456 DN

	rmmod pci_quad04


The driver allows some setup of the counters and the output string
through the /proc/quad04/set_# files.

I had planned to carry the driver at least to the level of handling
read and write functions. But the time, money and the PCI card left.
The driver as it exists seemed to work for what we were doing. It
was easy to use from python and bash. It probably is not the driver
most projects will need. It should at least give a place to start
and a simple way to test a board.

If you try it, let me know how it works or doesn't.

John Conner
Empire Digital Instruments
conner_at_EmpireDI.com

Received on 2003-10-21Z01:44:28