Blob Blame History Raw
.\"     Title: ieee1284_set_timeout
.\"    Author: Tim Waugh <>
.\" Generator: DocBook XSL Stylesheets v1.72.0 <>
.\"      Date: 09/18/2007
.\"    Manual: Functions
.\"    Source: 
.TH "IEEE1284_SET_TIMEOUT" "3" "09/18/2007" "" "Functions"
.\" disable hyphenation
.\" disable justification (adjust text to left margin only)
.ad l
ieee1284_set_timeout \- modify inactivity timeout
.ft B
#include <ieee1284.h>
.HP 37
.BI "struct timeval *ieee1284_set_timeout(struct\ parport\ *" "port" ", struct\ timeval\ *" "timeout" ");"
This function sets a new value for the inactivity timeout (used for block transfer functions), and returns the old value.
must be claimed.
parameter may be
\fBNULL\fR, in which case the old value is left unchanged.
This function returns a pointer to a
struct timeval
representing the old value. This uses the same storage as the
structure, and so is not valid after closing the port.
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.
It is also advisory; no guarantee is made that the transfer will ever complete.
\fBTim Waugh\fR <\&\&>
.sp -1n
.IP "" 4
Copyright \(co 2001\-2003 Tim Waugh