
7.1 d64h_do_event_callback
VC6
short d64h_do_event_callback (BYTE bCardID, U16 wEventEnable, U16 wEventType, void
(*callbackAddr)() )
Description:
This function adds/removes the event-notification of digital-output operation, 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: DOEnd or DBEvent.
callbackAddr: the function-pointer of callback function. It’s recommended
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).
ERROR_INVALID_EVENT_ACTION: Neither ADD_NOTIFICATION nor REMOVE_NOTIFICATION
is assigned to parameter
wEventEnable
.
ERROR_INVALID_CALLBACK_ADDRESS: Indicates the function-pointer of callback-function is
invalid.
ERROR_INVALID_EVENT_ACTION: Indicates incorrect setting is assigned to parameter
wEventType
.
ERROR_DO_EVENT_ATTACH: Cannot attach the notification-event to driver, please call
GetLastError() for further system information.
ERROR_DO_EVENT_DETACH: Cannot detach the notification-event from driver, please call
GetLastError() for further system information.
PCI-D64HU Function Reference Version
52
Содержание PCI-D64HU
Страница 5: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 5 1 4 Block Diagram...
Страница 17: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...
Страница 69: ...PCI D64HU Function Reference Version 53...
Страница 73: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...
Страница 125: ...PCI D64HU Function Reference Version 53...