
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 28
edt_disable_ring_buffers
Description
Disables the EDT device ring buffers. Pending DMA is cancelled and all buffers are released.
Syntax
#include "edtinc.h"
int edt_disable_ring_buffers(EdtDev *edt_p);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
Return
0 on success; –1 on error. If an error occurs, call edt_perror() to get the system error message.
edt_ring_buffer_overrun
Description
Returns true (1) when DMA has wrapped around the ring buffer and overwritten the buffer which the
application is about to access. Returns false (0) otherwise.
Syntax
#include "edtinc.h"
int edt_ring_buffer_overrun(EdtDev *edt_p);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
Return
1 (true) when overrun has occurred, corrupting the current buffer, 0 (false) otherwise.
0 on success; –1 on error. If an error occurs, call edt_perror() to get the system error message.
edt_reset_ring_buffers
Description
Stops any DMA currently in progress, then resets the ring buffer to start the next DMA at bufnum.
Syntax
#include "edtinc.h"
int edt_reset_ring_buffers(EdtDev *edt_p, int bufnum) ;
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
bufnum
The index of the ring buffer at which to start the next DMA. A number larger
than the number of buffers set up sets the current done count to the number
suppliedmodulo the number of buffers.
Return
0 on success; –1 on error. If an error occurs, call edt_perror() to get the system error message.
Comentários a estes Manuais