The functions in this section provide access to information, objects, and functionality of the system object. This includes the system object, interface and camera lists, and interface and logging events. More...
Functions | |
| SPINNAKERC_API | spinSystemGetInstance (spinSystem *phSystem) |
| Retrieves an instance of the system object; the system is a singleton, so there will only ever be one instance; system instance must be destroyed by calling spinSystemReleaseInstance. More... | |
| SPINNAKERC_API | spinSystemReleaseInstance (spinSystem hSystem) |
| Releases the system; make sure handle is cleaned up properly by setting it to NULL after system is released; the handle can only be used again after calling spinSystemGetInstance. More... | |
| SPINNAKERC_API | spinSystemGetInterfaces (spinSystem hSystem, spinInterfaceList hInterfaceList) |
| Retrieves a list of detected (and enumerable) interfaces on the system; interface lists must be created and destroyed. More... | |
| SPINNAKERC_API | spinSystemGetCameras (spinSystem hSystem, spinCameraList hCameraList) |
| Retrieves a list of detected (and enumerable) cameras on the system; camera lists must be created and destroyed. More... | |
| SPINNAKERC_API | spinSystemGetCamerasEx (spinSystem hSystem, bool8_t bUpdateInterfaces, bool8_t bUpdateCameras, spinCameraList hCameraList) |
| Retrieves a list of detected (and enumerable) cameras on the system; manually set whether to update the current interface and camera lists; camera lists must be created and destroyed. More... | |
| SPINNAKERC_API | spinSystemSetLoggingLevel (spinSystem hSystem, spinnakerLogLevel logLevel) |
| Sets the logging level for all logging events on the system. More... | |
| SPINNAKERC_API | spinSystemGetLoggingLevel (spinSystem hSystem, spinnakerLogLevel *pLogLevel) |
| Retrieves the logging level for all logging events on the system. More... | |
| SPINNAKERC_API | spinSystemRegisterLogEventHandler (spinSystem hSystem, spinLogEventHandler hLogEventHandler) |
| Registers a logging event handler to the system (event handlers registered in this way must be unregistered) More... | |
| SPINNAKERC_API | spinSystemUnregisterLogEventHandler (spinSystem hSystem, spinLogEventHandler hLogEventHandler) |
| Unregisters a selected logging event handler from the system. More... | |
| SPINNAKERC_API | spinSystemUnregisterAllLogEventHandlers (spinSystem hSystem) |
| Unregisters all logging event handlers from the system. More... | |
| SPINNAKERC_API | spinSystemIsInUse (spinSystem hSystem, bool8_t *pbIsInUse) |
| Checks whether a system is currently in use. More... | |
| SPINNAKERC_API | spinSystemRegisterDeviceArrivalEventHandler (spinSystem hSystem, spinDeviceArrivalEventHandler hDeviceArrivalEventHandler) |
| Registers a device arrival event handler to every interface on the system (event handlers registered this way must be unregistered) More... | |
| SPINNAKERC_API | spinSystemRegisterDeviceRemovalEventHandler (spinSystem hSystem, spinDeviceRemovalEventHandler hDeviceRemovalEventHandler) |
| Registers a device removal event handler to the system to every interface on the system (event handlers registered this way must be unregistered) More... | |
| SPINNAKERC_API | spinSystemUnregisterDeviceArrivalEventHandler (spinSystem hSystem, spinDeviceArrivalEventHandler hDeviceArrivalEventHandler) |
| Unregisters a device arrival event handler from the system. More... | |
| SPINNAKERC_API | spinSystemUnregisterDeviceRemovalEventHandler (spinSystem hSystem, spinDeviceRemovalEventHandler hDeviceRemovalEventHandler) |
| Unregisters a device removal event handler from the system. More... | |
| SPINNAKERC_API | spinSystemRegisterInterfaceEventHandler (spinSystem hSystem, spinInterfaceEventHandler hInterfaceEventHandler) |
| Registers an interface event handler (device arrival and device removal) to every interface on the system (interface events registered this way must be unregistered) If new interfaces are detected by the system after spinSystemRegisterInterfaceEventHandler() is called, those interfaces will be automatically registered with this event. More... | |
| SPINNAKERC_API | spinSystemUnregisterInterfaceEventHandler (spinSystem hSystem, spinInterfaceEventHandler hInterfaceEventHandler) |
| Unregisters an interface event handler from the system. More... | |
| SPINNAKERC_API | spinSystemUpdateCameras (spinSystem hSystem, bool8_t *pbChanged) |
| Updates the list of cameras on the system, informing whether there has been any changes. More... | |
| SPINNAKERC_API | spinSystemUpdateCamerasEx (spinSystem hSystem, bool8_t bUpdateInterfaces, bool8_t *pbChanged) |
| Updates the list of cameras on the system, informing whether there has been any changes; manually set whether to update the current interface lists. More... | |
| SPINNAKERC_API | spinSystemSendActionCommand (spinSystem hSystem, size_t iDeviceKey, size_t iGroupKey, size_t iGroupMask, size_t iActionTime, bool8_t requestAck, size_t *piResultSize, actionCommandResult results[]) |
| Broadcast an Action Command to all devices on system. More... | |
| SPINNAKERC_API | spinSystemGetLibraryVersion (spinSystem hSystem, spinLibraryVersion *hLibraryVersion) |
| Get current library version of Spinnaker. More... | |
| SPINNAKERC_API | spinSystemGetTLNodeMap (spinSystem hSystem, spinNodeMapHandle *phNodeMap) |
| Retrieves the transport layer nodemap from the system. More... | |
The functions in this section provide access to information, objects, and functionality of the system object. This includes the system object, interface and camera lists, and interface and logging events.
| SPINNAKERC_API spinSystemGetCameras | ( | spinSystem | hSystem, |
| spinCameraList | hCameraList | ||
| ) |
Retrieves a list of detected (and enumerable) cameras on the system; camera lists must be created and destroyed.
| hSystem | The system, from which the camera list is retrieved |
| hCameraList | The camera list to house the cameras from the system |
| SPINNAKERC_API spinSystemGetCamerasEx | ( | spinSystem | hSystem, |
| bool8_t | bUpdateInterfaces, | ||
| bool8_t | bUpdateCameras, | ||
| spinCameraList | hCameraList | ||
| ) |
Retrieves a list of detected (and enumerable) cameras on the system; manually set whether to update the current interface and camera lists; camera lists must be created and destroyed.
| hSystem | The system, from which the camera list is retrieved |
| bUpdateInterfaces | The boolean of whether to update the interface list |
| bUpdateCameras | The boolean of whether to update the camera list |
| hCameraList | The camera list to house the cameras from the system |
| SPINNAKERC_API spinSystemGetInstance | ( | spinSystem * | phSystem | ) |
Retrieves an instance of the system object; the system is a singleton, so there will only ever be one instance; system instance must be destroyed by calling spinSystemReleaseInstance.
| phSystem | The system handle pointer in which the system instance is returned |
| SPINNAKERC_API spinSystemGetInterfaces | ( | spinSystem | hSystem, |
| spinInterfaceList | hInterfaceList | ||
| ) |
Retrieves a list of detected (and enumerable) interfaces on the system; interface lists must be created and destroyed.
| hSystem | The system, from which the interface list is retrieved |
| hInterfaceList | The interface list to house the interfaces from the system |
| SPINNAKERC_API spinSystemGetLibraryVersion | ( | spinSystem | hSystem, |
| spinLibraryVersion * | hLibraryVersion | ||
| ) |
Get current library version of Spinnaker.
| SPINNAKERC_API spinSystemGetLoggingLevel | ( | spinSystem | hSystem, |
| spinnakerLogLevel * | pLogLevel | ||
| ) |
Retrieves the logging level for all logging events on the system.
| hSystem | The system, from which the logging level is retrieved |
| logLevel | The logging level enum pointer in which the current logging level is returned |
| SPINNAKERC_API spinSystemGetTLNodeMap | ( | spinSystem | hSystem, |
| spinNodeMapHandle * | phNodeMap | ||
| ) |
Retrieves the transport layer nodemap from the system.
| hSystem | The system handle. |
| phNodeMap | The nodemap handle pointer in which the transport layer system nodemap is returned. |
| SPINNAKERC_API spinSystemIsInUse | ( | spinSystem | hSystem, |
| bool8_t * | pbIsInUse | ||
| ) |
Checks whether a system is currently in use.
| hSystem | The system to check |
| pbIsInUse | The boolean pointer to return whether the system is currently in use |
| SPINNAKERC_API spinSystemRegisterDeviceArrivalEventHandler | ( | spinSystem | hSystem, |
| spinDeviceArrivalEventHandler | hDeviceArrivalEventHandler | ||
| ) |
Registers a device arrival event handler to every interface on the system (event handlers registered this way must be unregistered)
| hSystem | The system, on which the device arrival event handler is registered |
| hDeviceArrivalEventHandler | The device arrival event handler to register on the system |
| SPINNAKERC_API spinSystemRegisterDeviceRemovalEventHandler | ( | spinSystem | hSystem, |
| spinDeviceRemovalEventHandler | hDeviceRemovalEventHandler | ||
| ) |
Registers a device removal event handler to the system to every interface on the system (event handlers registered this way must be unregistered)
| hSystem | The system, on which the device removal event handler is registered |
| hDeviceRemovalEventHandler | The device removal event handler to register on the system |
| SPINNAKERC_API spinSystemRegisterInterfaceEventHandler | ( | spinSystem | hSystem, |
| spinInterfaceEventHandler | hInterfaceEventHandler | ||
| ) |
Registers an interface event handler (device arrival and device removal) to every interface on the system (interface events registered this way must be unregistered) If new interfaces are detected by the system after spinSystemRegisterInterfaceEventHandler() is called, those interfaces will be automatically registered with this event.
| hSystem | The system, on which the interface event handler is registered |
| hInterfaceEventHandler | The interface event handler (device arrival and device removal) to register on the system |
| SPINNAKERC_API spinSystemRegisterLogEventHandler | ( | spinSystem | hSystem, |
| spinLogEventHandler | hLogEventHandler | ||
| ) |
Registers a logging event handler to the system (event handlers registered in this way must be unregistered)
| hSystem | The system, on which the logging event handler is registered |
| hLogEventHandler | The logging event handler to register on the system |
| SPINNAKERC_API spinSystemReleaseInstance | ( | spinSystem | hSystem | ) |
Releases the system; make sure handle is cleaned up properly by setting it to NULL after system is released; the handle can only be used again after calling spinSystemGetInstance.
| hSystem | The system handle |
| SPINNAKERC_API spinSystemSendActionCommand | ( | spinSystem | hSystem, |
| size_t | iDeviceKey, | ||
| size_t | iGroupKey, | ||
| size_t | iGroupMask, | ||
| size_t | iActionTime, | ||
| bool8_t | requestAck, | ||
| size_t * | piResultSize, | ||
| actionCommandResult | results[] | ||
| ) |
Broadcast an Action Command to all devices on system.
| hSystem | The system on which to send the action command to all devices. |
| iDeviceKey | The Action Command's device key |
| iGroupKey | The Action Command's group key |
| iGroupMask | The Action Command's group mask |
| iActionTime | (Optional) Time when to assert a future action. Zero means immediate action. |
| requestAck | (Optional) Whether to request an ACK from the camera. True is to send ack. |
| piResultSize | (Optional) The number of results in the results array. The value passed should be equal to the expected number of devices that acknowledge the command. Returns the number of received results. |
| results | (Optional) An Array with *piResultSize elements to hold the action command result status. The buffer is filled starting from index 0. If received results are less than expected number of devices that acknowledge the command, remaining results are not changed. If received results are more than expected number of devices that acknowledge the command, extra results are ignored and not appended to array. This parameter is ignored if piResultSize is 0. Thus this parameter can be NULL if pResultSize is 0 or NULL. |
| SPINNAKERC_API spinSystemSetLoggingLevel | ( | spinSystem | hSystem, |
| spinnakerLogLevel | logLevel | ||
| ) |
Sets the logging level for all logging events on the system.
| hSystem | The system, on which the logging level is set |
| logLevel | The logging level to set |
| SPINNAKERC_API spinSystemUnregisterAllLogEventHandlers | ( | spinSystem | hSystem | ) |
Unregisters all logging event handlers from the system.
| hSystem | The system, from which all logging event handlers are unregistered |
| SPINNAKERC_API spinSystemUnregisterDeviceArrivalEventHandler | ( | spinSystem | hSystem, |
| spinDeviceArrivalEventHandler | hDeviceArrivalEventHandler | ||
| ) |
Unregisters a device arrival event handler from the system.
| hSystem | The system, from which the device arrival event handler is unregistered |
| hDeviceArrivalEventHandler | The device arrival event handler to unregister from the system |
| SPINNAKERC_API spinSystemUnregisterDeviceRemovalEventHandler | ( | spinSystem | hSystem, |
| spinDeviceRemovalEventHandler | hDeviceRemovalEventHandler | ||
| ) |
Unregisters a device removal event handler from the system.
| hSystem | The system, from which the device removal event handler is unregistered |
| hDeviceRemovalEventHandler | The device removal event handler to unregister from the system |
| SPINNAKERC_API spinSystemUnregisterInterfaceEventHandler | ( | spinSystem | hSystem, |
| spinInterfaceEventHandler | hInterfaceEventHandler | ||
| ) |
Unregisters an interface event handler from the system.
| hSystem | The system, from which the interface event handler is unregistered |
| hInterfaceEventHandler | The interface event handler (device arrival and device removal) to unregister from the system |
| SPINNAKERC_API spinSystemUnregisterLogEventHandler | ( | spinSystem | hSystem, |
| spinLogEventHandler | hLogEventHandler | ||
| ) |
Unregisters a selected logging event handler from the system.
| hSystem | The system, from which the logging event handler is unregistered |
| hLogEventHandler | The logging event handler to unregister from the system |
| SPINNAKERC_API spinSystemUpdateCameras | ( | spinSystem | hSystem, |
| bool8_t * | pbChanged | ||
| ) |
Updates the list of cameras on the system, informing whether there has been any changes.
| hSystem | The system, on which the list of attached cameras is updated |
| pbChanged | The boolean pointer to return whether cameras have arrived on or been removed from the system |
| SPINNAKERC_API spinSystemUpdateCamerasEx | ( | spinSystem | hSystem, |
| bool8_t | bUpdateInterfaces, | ||
| bool8_t * | pbChanged | ||
| ) |
Updates the list of cameras on the system, informing whether there has been any changes; manually set whether to update the current interface lists.
| hSystem | The system, on which the list of attached cameras is updated |
| bUpdateInterfaces | The boolean of whether to update the interface list |
| pbChanged | The boolean pointer to return whether cameras have arrived or been removed from the system |