Query state of DIO channel (in|out)

Hi all,

is there any way to detect if a DIO channel is configured for input or
output?

On boards where multiple channels are grouped in one port
comedi_dio_config will affect all channels of a port. This means that I
can't configure two channels from one port with different directions.
However, I haven't found a possibility to detect if configuring one
channel has changed the direction of another one.

Of course a can look into my board's docs to see which channels form a
port, but is there any device-independent manner to check for this
situation?

Thanks,
Jan

Received on 2005-02-24Z14:38:20