logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ieee1284_ecp_fwd_to_rev, ieee1284_ecp_rev_to_fwd - ECP direction switching

Author

TimWaugh <twaugh@redhat.com> Author.

Description

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.

Name

ieee1284_ecp_fwd_to_rev, ieee1284_ecp_rev_to_fwd - ECP direction switching

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).

Synopsis

intieee1284_ecp_fwd_to_rev(structparport*port);intieee1284_ecp_rev_to_fwd(structparport*port);

See Also