.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "IEEE1284_ECP_FWD_" 3 "" "" ""
.SH NAME
ieee1284_ecp_fwd_to_rev, ieee1284_ecp_rev_to_fwd \- ECP direction switching
.SH "SYNOPSIS"
.ad l
.hy 0
.HP 29
int\ \fBieee1284_ecp_fwd_to_rev\fR\ (struct\ parport\ *\fIport\fR);
.HP 29
int\ \fBieee1284_ecp_rev_to_fwd\fR\ (struct\ parport\ *\fIport\fR);
.ad
.hy

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

.TP
\fBE1284_OK\fR
Direction switched successfully\&.

.TP
\fBE1284_NOTIMPL\fR
The \fIport\fR lacks the required capability\&. This could be due to a limitation of this version of libieee1284, or a hardware limitation\&.

.TP
\fBE1284_INVALIDPORT\fR
The \fIport\fR parameter is invalid (for instance, perhaps the \fIport\fR is not claimed)\&.

.SH AUTHOR
Tim Waugh <twaugh@redhat\&.com>.
