Re: [PARPORT] How do I send an ECP command from a user level driver?

From: Tim Waugh (twaugh@redhat.com)
Date: Sat Jun 30 2001 - 14:34:51 EDT

  • Next message: Fernando Pando: "[PARPORT] Redhat 7.1 & HP 5300C scanner"

    On Sat, Jun 30, 2001 at 10:32:17AM -0500, David Lambert wrote:

    > I am attempting to write a user level driver to interface to some custom
    > hardware which uses ECP. Is there a low level function to send a command
    > rather than data to the device, or must I frob the appropriate control lines
    > using ioctl with PPFCONTROL?

    Use PPNEGOT with IEEE1284_MODE_ECP|IEEE1284_ADDR. Rather than
    performing any actual negotiation, it tells the kernel to use ECP
    channel transfers rather than data transfers. (IEEE1284_DATA serves
    the complementary purpose.)

    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 : Sat Jun 30 2001 - 14:36:29 EDT