
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 39
edt_get_goodbits
Description
Returns the current number of good bits in the last long word of a read buffer (0 through 31).
Syntax
#include "edtinc.h"
int edt_get_goodbits(EdtDev *edt_p);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
Return
Number 0–31 represents the number of good bits in the 32-bit word of the current read buffer.
edt_set_event_func
Description
Defines a function to call when an event occurs. Use this routine to send an application-specific
function when required; for example, when DMA completes, allowing the application to continue
executing until the event of interest occurs.
If you wish to receive notification of one event only, and then disable further event notification, send a
final argument of 0 (see the continue parameter described below). This disables event notification at the
time of the callback to your function.
Syntax
#include "edtinc.h"
int edt_set_event_func(EdtDev *edt_p, int event, void (*func)(void
*),
void *data, int continue);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel.
The event that causes the function to be called. Valid events are:
Event Description Board
EDT_PDV_EVENT_ACQUIRE Image has been acquired;
shutter has closed; subject
can be moved if necessary;
DMA will now restart
PCI DV,
PCI DVK,
PCI FOI
EDT_PDV_EVENT_FVAL Frame Valid line is set PCI DV,
PCI DVK
EDT_EVENT_P16D_DINT Device interrupt occurred PCI 16D
EDT_EVENT_P11W_ATTN Attention interrupt occurred PCI 11W
EDT_EVENT_P11W_CNT Count interrupt occurred PCI 11W
event
EDT_EVENT_PCD_STAT1 Interrupt occurred on Status 1
line
PCI CD
Comentários a estes Manuais