Events are notifications generated by the camera to inform host application about internal updates. Event Control is a mechanism that is used to synchronize the camera with host application using these events.
EventSelector can be used to select the event for turning notifications on or off. By default, EventNotification for all the events are set to Off except for Test event. This is because EventNotification for Test event is always set to On and cannot be changed.
The following pseudocode demonstrates enabling Event Control on the camera.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
// Connect to camera
// Get device node map
InitializeEvents();
RegisterCallback();
GenerateEvent();
// Wait on event
DeregisterCallback();
DeinitializeEvents();
|
Events available on camera are as follow: