Download CDA CD 60 Specifications
Transcript
PCI CD and PCI CDa edt_set_wtimeout Description Sets the number of milliseconds for data write calls, such as edt_write(), 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 write. Edt_set_wtimeout affects edt_wait_for_buffers (see page XX) and edt_write (see page XX). Syntax #include "edtinc.h" int edt_set_wtimeout(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_timestamp Description Gets the seconds and microseconds timestamp of when dma was completed on the buffer specified by bufnum. “bufnum” is moded by the number of buffers in the ring buffer, so it can either be an index, or the number of buffers completed. Syntax int edt_get_timestamp(EdtDev *edt_p, u_int *timep, u_int bufnum) Arguments edt_p device struct returned from edt_open timep pointer to an unsigned integer array bufnum buffer index, or number of buffers completed Example int timestamp[2]; u_int bufnum=edt_done_count(edt_p); edt_get_timestamp(edt_p, timestamp, bufnum); Return 0 on success, -1 on failure. Fills in timestamp pointed to by timep. See Also edt_timestamp(), edt_done_count(), edt_wait_buffers_timed edt_get_reftime Description Gets the seconds and microseconds timestamp in the same format as the buffer_timed functions. Used for debugging and coordinating dma completion time with other events. Document Number: 008-00965-06 Template: edt.dot EDT Public Revision: I December 2004 Page 35