CDA CD 60 Especificações Página 36

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 91
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 35
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 36
Syntax
int edt_get_reftime(EdtDev *edt_p, u_int *timep)
Arguments
edt_p
device struct returned from edt_open
timep
pointer to an unsigned integer array
bufnum
buffer index, or number of buffers completed
Example
int timestamp[2];
edt_get_regtime(edt_p, timestamp);
Return
0 on success, -1 on failure. Fills in timestamp pointed to by timep.
See Also
edt_timestamp(), edt_done_count(), edt_wait_buffers_timed
edt_ref_tmstamp
Description
Used for debugging and viewing a history with setdebug -g with an application-defined event in the
same timeline as driver events.
Syntax
int edt_ref_tmstamp(EdtDev *edt_p, u_int val)
Arguments
edt_p
device struct returned from edt_open
val
an arbitrary value meaningful to the application
Example
#define BEFORE_WAIT 0x11212aaaa
#define AFTER_WAIT 0x3344bbbb
u_char *buf;
edt_ref_tmstamp(edt_p, BEFORE_WAIT);
buf=edt_wait_for_buffer(edt_p);
edt_reg_tmstamp(edt_p, AFTER_WAIT);
/* now look at output of setdebug -g */
Return
0 on success, -1 on failure.
See Also
documentation on setdebug
Vista de página 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 90 91

Comentários a estes Manuais

Sem comentários