
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 33
EDT_TIMEOUT_NULL no extra action taken
EDT_TIMEOUT_BIT_STROBE flush any valid bits left in input circuits of
SSDIO.
Return
No return value.
edt_get_timeout_goodbits
Description
Returns the number of good bits in the last long word of a read buffer after the last timeout. This
routine is called after a timeout, if the timeout action is set to EDT_TIMEOUT_BIT_STROBE. (See
edt_set_timeout_action on page 32.)
Syntax
#include "edtinc.h"
int edt_get_timeout_goodbits(EdtDev *edt_p);
Arguments
edt_p device handle returned from edt_open or edt_open_channel
Return
Number 0–31 represents the number of good bits in the last 32-bit word of the read buffer associated
with the last timeout.
edt_do_timeout
Description
Causes the driver to perform the same actions as it would on a timeout (causing partially filled fifos to
be flushed and dma to be aborted). Used when the application has knowledge that no more data will be
sent/accepted. Used when a common timeout cannot be known, such as when acquiring data from a
telescope ccd array where the amount of data sent depends on unknown future celestial events. Also
used by the library when the operating system can not otherwise wait for an interrupt and timeout at the
same time.
Syntax
int edt_do_timeout(EdtDev *edt_p)
Arguments
edt_p device struct returned from edt_open
Example
edt_do_timeout(edt_p);
Return
0 on success, -1 on failure
See Also
ring buffer discussion
Kommentare zu diesen Handbüchern