
CHAPTER
7
Event Notification Functions
This chapter introduces the functions to register the related routine for the relevant events.
7.1 d64h_di_event_callback
VC6
short d64h_di_event_callback (BYTE bCardID, U16 wEventEnable, U16 wEventType, void
(*callbackAddr)() )
Description:
This function adds/removes the event-notification of digital-input acquisition, and registers the related
callback function.
Parameters:
bCardID: The specific Card ID that is configured with the on-board Dip-Switch.
wEventEnable: ADD_NOTIFICATION or REMOVE_NOTIFICATION.
wEventType: DIEnd or DBEvent.
callbackAddr: the function-pointer of callback function.
Notice:
One internal thread will be created to monitor that specific event. Once that event is
triggered by driver, the internal thread will call the function-pointer that is stored in
parameter
callbackAddr.
To avoid missing event-notification, the callback function must return before next
triggered-event.
Return Code:
SUCCESS_NO_ERROR: The function returns successfully.
ERROR_INVALID_CARD_ID: There is no active PCI-D64HU card configured with bCardID, or the
given Card ID is invalid (for instance, Card ID is assigned to 254).
PCI-D64HU Function Reference Version
50
Summary of Contents for PCI-D64HU
Page 5: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 5 1 4 Block Diagram...
Page 17: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...
Page 69: ...PCI D64HU Function Reference Version 53...
Page 73: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...