CDA CD 60 Especificações Página 28

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 91
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 27
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.
Vista de página 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 90 91

Comentários a estes Manuais

Sem comentários