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

From: Jan Prikryl (prikryl@vrvis.at)
Date: Thu Aug 03 2000 - 07:11:56 EDT

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

    Quoting Tim Waugh (twaugh@redhat.com):

    > 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?

    Yes. And it works now. The problem was as usual: me stupid. The box
    has got two parallel ports, I played with the wrong one.

    Thanks for help.

    -- jan

    --------------------+------------------------------------------------------
     Jan Prikryl | vr|vis center for virtual reality and visualisation
     <prikryl@vrvis.at> | http://www.vrvis.at
    --------------------+------------------------------------------------------

    -- 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 Aug 03 2000 - 14:30:40 EDT