
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 24
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
count
buffer number for which to block. Completed buffers are numbered
cumulatively starting with 0 when the EDT Product is opened.
timep
pointer to an array of two unsigned integers. The first integer is seconds, the
next integer is microseconds representing the system time at which the
buffer completed.
Return
Address of last completed buffer on success; NULL on error. If an error occurs, call edt_perror() to get
the system error message.
Note
If the ring buffer is in free-running mode and the application cannot process data as fast as it
is acquired, DMA will wrap around and overwrite the referenced buffer . The application
must ensure that the data in the buffer is processed or copied out in time to prevent overrun.
edt_next_writebuf
Description
Returns a pointer to the next buffer scheduled for output DMA, in order to fill the buffer with data.
Syntax
#include "edtinc.h"
void *edt_next_writebuf(EdtDev *edt_p) ;
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
Return
Returns a pointer to the buffer, or NULL on failure. If an error occurs, call edt_perror() to get the
system error message.
edt_set_buffer
Description
Sets which buffer should be started next. Usually done to recover after a timeout, interrupt, or error.
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
Syntax
#include "edtinc.h"
void *edt_next_writebuf(EdtDev *edt_p) ;
Example
u_int curdone;
edt_stop_buffers(edt_p);
curdone=edt_done_count(edt_p);
Kommentare zu diesen Handbüchern