CDA CD 60 Especificações Página 22

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 91
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 21
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 22
edt_done_count
Description
Returns the cumulative count of completed buffer transfers in ring buffer mode.
Syntax
#include "edtinc.h"
int edt_done_count(EdtDev *edt_p);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
Return
The number of completed buffer transfers. Completed buffers are numbered consecutively starting with
0 when edt_configure_ring_buffers() is invoked. The index of the ring buffer most recently completed
by the driver equals the number returned modulo the number of ring buffers. –1 is returned if ring
buffer mode is not configured. If an error occurs, call edt_perror() to get the system error message.
edt_get_todo
Description
Gets the number of buffers that the driver has been told to acquire. This allows an application to know
the state of the ring buffers within an interrupt, timeout, or when cleaning up on close. It also allows the
application to know how close it is getting behind the acquisition. It is not normally needed.
Syntax
uint_t edt_get_todo(EdtDev *edt_p);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
Example
int curdone;
int curtodo;
curdone=edt_done_count(pdv_p);
curtodo=edt_get_todo(pdv_p);
/* curtodo--curdone how close the dma is to catching with our
processing */
Return
Number of buffers started via edt_start_buffers.
See Also
edt_done_count(), edt_start_buffers(), edt_wait_for_buffers()
edt_wait_for_buffers
Description
Blocks until the specified number of buffers have completed.
Vista de página 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 90 91

Comentários a estes Manuais

Sem comentários