Re: [PARPORT] Example Code

From: Tim Waugh (twaugh@redhat.com)
Date: Wed Mar 28 2001 - 16:38:33 EST

  • Next message: Tim Waugh: "[PARPORT] [patch] Via SIO parameters"

    On Wed, Mar 28, 2001 at 04:25:40PM -0500, Andrew Hogue wrote:

    > Why would this be the case? Is there something that needs to be done
    > before trying to open the /dev/parport0 in order to let my program access
    > this file?

    Yes, you need to load the ppdev module.

    > Also I would really like to use the outb() and inb() functions since I
    > need to set certain pins according to the protocol of my device, is there
    > a way to do this with the ppdev interface?

    Yes, with ioctls. Use PPWCONTROL to set control pins and PPWDATA to
    set the data pins.

    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 : Wed Mar 28 2001 - 16:42:43 EST