'\" t .\" Title: ieee1284_ecp_fwd_to_rev .\" Author: Tim Waugh .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 04/07/2024 .\" Manual: Functions .\" Source: [FIXME: source] .\" Language: English .\" .TH "IEEE1284_ECP_FWD_TO_" "3" "04/07/2024" "[FIXME: source]" "Functions" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ieee1284_ecp_fwd_to_rev, ieee1284_ecp_rev_to_fwd \- ECP direction switching .SH "SYNOPSIS" .HP \w'int\ ieee1284_ecp_fwd_to_rev('u .BI "int ieee1284_ecp_fwd_to_rev(struct\ parport\ *" "port" ");" .HP \w'int\ ieee1284_ecp_rev_to_fwd('u .BI "int ieee1284_ecp_rev_to_fwd(struct\ parport\ *" "port" ");" .SH "DESCRIPTION" .PP 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 \fBieee1284_ecp_fwd_to_rev\fR to switch from forward to reverse, and \fBieee1284_ecp_rev_to_fwd\fR to switch from reverse to forward\&. .PP They act on the parallel port associated with \fIport\fR, which must be claimed\&. .SH "RETURN VALUE" .PP \fBE1284_OK\fR .RS 4 Direction switched successfully\&. .RE .PP \fBE1284_NOTIMPL\fR .RS 4 The \fIport\fR lacks the required capability\&. This could be due to a limitation of this version of libieee1284, or a hardware limitation\&. .RE .PP \fBE1284_INVALIDPORT\fR .RS 4 The \fIport\fR parameter is invalid (for instance, perhaps the \fIport\fR is not claimed)\&. .RE .SH "AUTHOR" .PP \fBTim Waugh\fR <\&twaugh@redhat.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br Copyright \(co 2001-2003 Tim Waugh .br