CDA CD 60 Especificaciones Pagina 21

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 91
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 20
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 21
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
bufnum
Number of buffers to release to the driver for transfer. An argument of 0
puts the driver in free
running mode, and transfers run continuously
until
edt_stop_buffers() is called.
Return
0 on success; –1 on error. If an error occurs, call edt_perror() to get the system error message.
edt_stop_buffers
Description
Stops DMA transfer after the current buffer has completed. Ring buffer mode remains active, and
transfers will be continued by calling edt_start_buffers().
Syntax
#include "edtinc.h"
int edt_stop_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_check_for_buffers
Description
Checks whether the specified number of buffers have completed without blocking.
Syntax
#include "edtinc.h"
void *edt_check_for_buffers(EdtDev *edt_p, int count);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
count
number of buffers. Must be 1 or greater. Four is recommended.
Return
Returns the address of the ring buffer corresponding to count if it has completed DMA, or NULL if
count buffers are not yet complete.
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.
Vista de pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 90 91

Comentarios a estos manuales

Sin comentarios