.\"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_SET_TIMEO" 3 "" "" ""
.SH NAME
ieee1284_set_timeout \- modify inactivity timeout
.SH "SYNOPSIS"
.ad l
.hy 0

#include <ieee1284\&.h>
.sp
.HP 46
struct\ timeval \ \ \ \ *\fBieee1284_set_timeout\fR\ (struct\ parport\ *\fIport\fR, struct\ timeval\ *\fItimeout\fR);
.ad
.hy

.SH "DESCRIPTION"

.PP
This function sets a new value for the inactivity timeout (used for block transfer functions), and returns the old value\&.

.PP
The \fIport\fR must be claimed\&.

.PP
The \fItimeout\fR parameter may be \fBNULL\fR, in which case the old value is left unchanged\&.

.SH "RETURN VALUE"

.PP
This function returns a pointer to a struct timeval representing the old value\&. This uses the same storage as the \fIport\fR structure, and so is not valid after closing the port\&.

.SH "NOTES"

.PP
Note that this is an inactivity time\-out, not an absolute time\-out\&. During a data transfer, if the peripheral is inactive for the length of time specified then the host gives up\&.

.PP
It is also advisory; no guarantee is made that the transfer will ever complete\&.

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