ieee1284_ecp_rev_to_fwd(3)

ieee1284_ecp_rev_to_fwd3

Ecp direction switching

Part of ieee1284_ecp_fwd_to_rev(3).

Usage

int ieee1284_ecp_fwd_to_rev(struct parport *port);

int ieee1284_ecp_rev_to_fwd(struct parport *port);

Overview

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.

Return value

E1284_OK

Direction switched successfully.

E1284_NOTIMPL

The port lacks the required capability. This could be due to a limitation of this version of libieee1284, or a hardware limitation.

E1284_INVALIDPORT

The port parameter is invalid (for instance, perhaps the port is not claimed).

Releases

11 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1–4.0
  2. 5.0–13

Author

Tim Waugh <[email protected]>

Author.

From libieee1284-3-dev 0.2.11-14.1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.