Comedi_config can be used with optional parameters which are driver dependent. Parameters are specified by comma-delimited list of integers. The integers may be expressed as decimal, hexidecimal (starting with 0x) or octal (stating with 0). In addition, a parameter may be left blank, indicating 0. PCI-based devices typically require no parameters, although some allow you to specify the bus and slot of the card to configure as the first two parameters. ISA-based devices typically use the first and second parameters to indicate I/O base address and interrupt level.
More information about the parameters required by individual drivers can be found in the comedi documentation, in the file drivers.txt.
comedi_config recognizes the following options:
-q, --quiet don't print output while running.
-v, --verbose print verbose output while running.
-V, --version print version number and exit.
-r, --remove remove previously configured driver.
[This section has not been implemented yet.]
A list of device configurations can be put into the file /etc/comedi.conf. This file takes the form
<device> <driver> <param1>,<param2>,...
These configurations will be read and performed when the switch -a is used. This is potentially useful when run from an initialization script.
A National Instruments PCI-MIO E series board can be configured to use /dev/comedi0 using the command:
comedi_config /dev/comedi0 ni_pcimio
A National Instruments AT-MIO E series board can be configured to use /dev/comedi3 using the command:
comedi_config /dev/comedi3 ni_atmio 0x220,3
This tells the driver that the board is configured for I/O base 0x220 and IRQ 3.
Additional text documentation can be found in /usr/doc/comedilib-0.7.11. The current version of Comedi and Comedilib can be obtained from ftp://ftp.comedi.org/pub/comedi. The Comedi web site is located at http://www.comedi.org/comedi.
David Schleef, <firstname.lastname@example.org>