On Wed, Jul 26, 2000 at 07:16:05PM +0200, Jan Prikryl wrote:
> I thought the safer way of reading the parallel port would be
> possible using the userland driver ioctl() calls, but I do not get
> any meaninful input from the port either using read() on port that
> has been set to input mode, or using ioctl(PPRDATA).
Hmm, it ought to work.
unsigned char data;
int dir = 1;
ioctl (c, PPCLAIM);
ioctl (c, PPDATADIR, &dir);
ioctl (c, PPRDATA, &data);
Is that what you're doing?
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 2b29 : Thu Jul 27 2000 - 05:45:04 EDT