RFID_STATUS WINAPI RFID_RegisterEventNotification ( RFID_HANDLE32  readerHandle,
RFID_EVENT_TYPE  eventType,
EVENT_HANDLE  notifyObject 
)

This function is used to enable notification of single Reader event type. This function has to be called for each event type.

Parameters:
[in] readerHandle 
Handle to the RFID device.
[in] eventType 
An event of type RFID_EVENT_TYPE whose notification is requested.
[in] notifyObject 
Handle to WIN32 Event corresponding to the registered event.
Returns:
If the function succeeds the return value is RFID_API_SUCCESS. If the function fails the return value is one of the following:
  • RFID_API_INVALID_HANDLE Invalid handle is provided
  • RFID_API_PARAM_ERROR Invalid parameter given
  • RFID_CONFIG_SET_FAILED Failed to register the event for notification
Remarks:
The application shall create an event using the WIN32 API CreateEvent and pass it to this function as the notifyObject. GPI_EVENT - This event is triggered when the Reader reports the occurance of a GPI event on a specific port. The application can invoke the function RFID_GetEventData to fetch the event GPI_EVENT_DATA. TAG_READ_EVENT - This event is triggered as a result of Inventory / Read-Access requests using functions RFID_PerformInventory or RFID_Read or RFID_PerformAccessSequence. The application can invoke the function RFID_GetEventData or RFID_GetTagReadData to fetch the event TAG_DATA. BUFFER_FULL_WARNING_EVENT - This event occurs when the buffers at the Dll or the Reader are full. After the reporting of this event, further tags will be discarded. ANTENNA_EVENT - This event is triggered when the Reader reports the occurance of an Antenna event. The application can invoke the function RFID_GetEventData to fetch the event ANTENNA_EVENT_DATA. DISCONNECTION_EVENT - This event is triggered when the connection to the Reader is lost. When this event is signaled the application shall call RFID_Disconnect to clean up the Connection settings in the Dll.
See also:
RFID_DeregisterEventNotification, RFID_GetEventData
Remarks:
Example: See


Generated on Fri Mar 4 02:25:29 2016 for RFIDAPI3 1.1 C API Documentation by  doxygen 1.5.6