Tim Waugh (twaugh@redhat.com)
Fri, 5 Nov 1999 09:49:05 +0000 (GMT)
> I would appreciate any ppdev user program examples that will
> set up a parallel port in EPP mode, and perform a read and/or write to
> a peripheral. Thanks.
Basically, you open the ppdev device and tell it that we want EPP mode,
and then read:
fd = open (...);
ioctl (fd, PPCLAIM);
epp = IEEE1284_MODE_EPP;
ioctl (fd, SETMODE, &epp);
read (fd, ...);
ioctl (fd, PPRELEASE);
Tim.
*/
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2.0b3 on Fri 05 Nov 1999 - 04:58:22 EST