parsing comedi addresses

Hello,

is there some standard function to parse a string into a comedi address?
I couldn't find one in the on-line docs...


Background: I would like to interface the MatPLC to comedi.
http://mat.sf.net

In the MatPLC, I/O is specified by the user in a configuration file. At
startup-time, this file is read to give the addresses of the hardware to
be read and/or written. The bulk of the interfacing will end up being a
function which takes

    - direction (in/out)
    - size in bits (0-32), if useful, and
    - a string supplied by the user (in the config file)

and decides which comedi functions need to be called at run time, with
what parameters.

If there isn't a function for this, is there a standard format for the
addresses? I don't know, something like "0.d1.2.3" for device 0, digital
subdevice 1, channel 2, bit 3?


Thank you

Jiri
-- 
Jiri Baum <jiri_at_baum.com.au>           http://www.csse.monash.edu.au/~jirib
  MAT LinuxPLC project --- http://mat.sf.net --- Machine Automation Tools

Received on 2003-07-04Z05:40:54