Re: [PARPORT] Reading individual data pins from user-space application?

From: Tim Waugh (
Date: Thu Jul 27 2000 - 05:42:39 EDT

  • Next message: Jan Prikryl: "Re: [PARPORT] Reading individual data pins from user-space application?"

    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?


    -- To unsubscribe, send mail to: --
    -- 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