Manu S Madhav <[email protected]> writes:
> Using Analogy, and with a bit of reading, I was able to get analog input
> and output up and running without too much trouble, but digital I/O is
> completely evading me. I am just trying to turn on all digital outputs to 1
> using synchronous instruction to the DIO subdevice (#2, in my case). Size
> of the subdevice is 4 (32 bits).
Before writing to the DIO device, you have to configure each line that
you want to be a digital output as an output, otherwise it stays a
digital input:
for (i=0; i<num_channels; i++) {
err = a4l_config_subd(dsc, subd_DIO, A4L_INSN_CONFIG_DIO_OUTPUT, i);
if (err < 0) [...]
}
-- Paul
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai