CDA CD 60 Specifikace Strana 25

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 91
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 24
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 25
edt_set_buffer(edt_p, 0);
Return
0 on success, -1 on failure.
See Also
edt_stop_buffers(), edt_done_count(), edt_get_todo()
edt_set_buffer_size
Description
Used to change the size or direction of one of the ring buffers. Almost never used. Mixing directions
requires detailed knowledge of the interface since pending preloaded DMA transfers need to be
coordinated with the interface fifo direction. For example, a dma write will complete when the data is
in the output fifo, but the dma read should not be started until the data is out to the external device.
Most applications requiring fast mixed reads/writes have worked out more cleanly using seperate,
simultaneous, read and write dma transfers using different dma channels.
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
which_buf
index of ring buffer to change
size
size to change it to
write_flag
direction
Syntax
int edt_set_buffer_size(EdtDev *edt_p, unsigned int which_buf,
unsigned int size, unsigned int write_flag)
Example
u_int bufnum=3;
u_int bsize=1024;
u_int dirflag=EDT_WRITE;
int ret;
ret=edt_set_buffer_size(edt_p, bufnum, bsize, dirflag);
Return
0 on success, -1 on failure.
See Also
edt_open_channel(), redpcd8.c, rd16.c, rdssdio.c, wrssdio.c
edt_last_buffer
Description
Waits for the last buffer that has been transferred. This is useful if the application cannot keep up with
buffer transfer. If this routine is called for a second time before another buffer has been transferred, it
will block waiting for the next transfer to complete.
Zobrazit stránku 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 90 91

Komentáře k této Příručce

Žádné komentáře