
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 34
edt_get_rtimeout
Description
Gets the current read timeout value: the number of milliseconds to wait for DMA reads to complete
before returning.
Syntax
#include "edtinc.h"
int edt_get_rtimeout(EdtDev *edt_p);
Arguments
edt_p device handle returned from edt_open or edt_open_channel
Return
The number of milliseconds in the current read timeout period.
edt_set_rtimeout
Description
Sets the number of milliseconds for data read calls, such as edt_read(), to wait for DMA to complete
before returning. A value of 0 causes the I/O operation to wait forever—that is, to block on a read.
Edt_set_rtimeout affects edt_wait_for_buffers (see page XX) and edt_read (see page XX).
Syntax
#include "edtinc.h"
int edt_set_rtimeout(EdtDev *edt_p, int value);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
value
The number of milliseconds in the timeout period.
Return
0 on success; –1 on error. If an error occurs, call edt_perror() to get the system error message.
edt_get_wtimeout
Description
Gets the current write timeout value: the number of milliseconds to wait for DMA writes to complete
before returning.
Syntax
#include "edtinc.h"
int edt_get_wtimeout(EdtDev *edt_p);
Arguments
edt_p device handle returned from edt_open or edt_open_channel
Return
The number of milliseconds in the current write timeout period.
Kommentare zu diesen Handbüchern