int ieee1284_ecp_fwd_to_rev(struct parport *port);
int ieee1284_ecp_rev_to_fwd(struct parport *port);
These functions are used to switch directions when in ECP mode. On negotiation to ECP mode the direction is forward (in other words, host-to-peripheral). Use ieee1284_ecp_fwd_to_rev to switch from forward to reverse, and ieee1284_ecp_rev_to_fwd to switch from reverse to forward.
They act on the parallel port associated with port, which must be claimed.
Direction switched successfully.
The port lacks the required capability. This could be due to a limitation of this version of libieee1284, or a hardware limitation.
The port parameter is invalid (for instance, perhaps the port is not claimed).
Tim Waugh <firstname.lastname@example.org>
Copyright © 2001-2003 Tim Waugh
ieee1284_negotiate(3), ieee1284_nibble_read(3), libieee1284(3).
The man page ieee1284_ecp_rev_to_fwd(3) is an alias of ieee1284_ecp_fwd_to_rev(3).