CDA CD 60 Dokumentacja Strona 38

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 91
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 37
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 38
Example
int application_should_already_know_this;
application_should_already_know_this=edt_get_firstflush(edt_p);
Return
Yes
See Also
edt_set_firstflush
edt_set_firstflush
Description
Tells whether and when to flush the FIFOs before DMA transfer. By default, the FIFOs are not flushed.
However, certain applications may require flushing before a given DMA transfer, or before each
transfer.
Syntax
#include "edtinc.h"
int *edt_set_firstflush(EdtDev *edt_p, int flag) ;
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
flag
Tells whether and when to flush the FIFOs. Valid values are:
EDT_ACT_NEVER don’t flush before DMA transfer (default)
EDT_ACT_ONCE flush before the start of the next DMA transfer
EDT_ACT_ALWAYS flush before the start of every DMA transfer
Return
0 on success; –1 on error. If an error occurs, call edt_perror() to get the system error message.
edt_flush_fifo
Description
Flushes the board’s input and output FIFOs, to allow new data transfers to start from a known state.
Syntax
#include "edtinc.h"
void edt_flush_fifo(EdtDev *edt_p);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
Return
No return value.
Przeglądanie stron 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 90 91

Komentarze do niniejszej Instrukcji

Brak uwag