Group CSystem¶
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.
Public Functions¶
Public Functions Documentation¶
function spinSystemGetCameras¶
Retrieves a list of detected (and enumerable) cameras on the system; camera lists must be created and destroyed
See also: spinCameraListCreateEmpty()
See also: spinCameraListDestroy()
See also: spinError
Parameters:
hSystemThe system, from which the camera list is retrievedhCameraListThe camera list to house the cameras from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemGetCamerasEx¶
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
See also: spinCameraListCreateEmpty()
See also: spinCameraListDestroy()
See also: spinError
Parameters:
hSystemThe system, from which the camera list is retrievedbUpdateInterfacesThe boolean of whether to update the interface listbUpdateCamerasThe boolean of whether to update the camera listhCameraListThe camera list to house the cameras from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemGetInstance¶
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
See also: spinSystemReleaseInstance
See also: spinError
Parameters:
phSystemThe system handle pointer in which the system instance is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemGetInterfaces¶
Retrieves a list of detected (and enumerable) interfaces on the system; interface lists must be created and destroyed
See also: spinInterfaceListCreateEmpty()
See also: spinInterfaceListDestroy()
See also: spinError
Parameters:
hSystemThe system, from which the interface list is retrievedhInterfaceListThe interface list to house the interfaces from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemGetLibraryVersion¶
Get current library version of Spinnaker.
Returns:
A struct containing the current version of Spinnaker(major, minor, type, build).
function spinSystemGetLoggingLevel¶
Retrieves the logging level for all logging events on the system
See also: spinError
Parameters:
hSystemThe system, from which the logging level is retrievedlogLevelThe logging level enum pointer in which the current logging level is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemGetTLNodeMap¶
Retrieves the transport layer nodemap from the system.
See also: spinError
Parameters:
hSystemThe system handle.phNodeMapThe nodemap handle pointer in which the transport layer system nodemap is returned.
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemIsInUse¶
Checks whether a system is currently in use
See also: spinError
Parameters:
hSystemThe system to checkpbIsInUseThe boolean pointer to return whether the system is currently in use
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemRegisterDeviceArrivalEventHandler¶
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)
See also: spinError
Parameters:
hSystemThe system, on which the device arrival event handler is registeredhDeviceArrivalEventHandlerThe device arrival event handler to register on the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemRegisterDeviceRemovalEventHandler¶
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)
See also: spinError
Parameters:
hSystemThe system, on which the device removal event handler is registeredhDeviceRemovalEventHandlerThe device removal event handler to register on the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemRegisterInterfaceEventHandler¶
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.
See also: spinError
See also: spinInterfaceEventHandler
Parameters:
hSystemThe system, on which the interface event handler is registeredhInterfaceEventHandlerThe interface event handler (device arrival and device removal) to register on the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemRegisterLogEventHandler¶
Registers a logging event handler to the system (event handlers registered in this way must be unregistered)
See also: spinError
Parameters:
hSystemThe system, on which the logging event handler is registeredhLogEventHandlerThe logging event handler to register on the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemReleaseInstance¶
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
See also: spinSystemGetInstance
See also: spinError
Parameters:
hSystemThe system handle
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemSendActionCommand¶
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
See also: spinError
Parameters:
hSystemThe system on which to send the action command to all devices.iDeviceKeyThe Action Command's device keyiGroupKeyThe Action Command's group keyiGroupMaskThe Action Command's group maskiActionTime(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.
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemSetLoggingLevel¶
Sets the logging level for all logging events on the system
See also: spinError
Parameters:
hSystemThe system, on which the logging level is setlogLevelThe logging level to set
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemUnregisterAllLogEventHandlers¶
Unregisters all logging event handlers from the system
See also: spinError
Parameters:
hSystemThe system, from which all logging event handlers are unregistered
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemUnregisterDeviceArrivalEventHandler¶
spinSystemUnregisterDeviceArrivalEventHandler (
spinSystem hSystem,
spinDeviceArrivalEventHandler hDeviceArrivalEventHandler
)
Unregisters a device arrival event handler from the system
See also: spinError
See also: spinDeviceArrivalEventHandler
Parameters:
hSystemThe system, from which the device arrival event handler is unregisteredhDeviceArrivalEventHandlerThe device arrival event handler to unregister from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemUnregisterDeviceRemovalEventHandler¶
spinSystemUnregisterDeviceRemovalEventHandler (
spinSystem hSystem,
spinDeviceRemovalEventHandler hDeviceRemovalEventHandler
)
Unregisters a device removal event handler from the system
See also: spinError
See also: spinDeviceRemovalEventHandler
Parameters:
hSystemThe system, from which the device removal event handler is unregisteredhDeviceRemovalEventHandlerThe device removal event handler to unregister from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemUnregisterInterfaceEventHandler¶
spinSystemUnregisterInterfaceEventHandler (
spinSystem hSystem,
spinInterfaceEventHandler hInterfaceEventHandler
)
Unregisters an interface event handler from the system
See also: spinError
See also: spinInterfaceEventHandler
Parameters:
hSystemThe system, from which the interface event handler is unregisteredhInterfaceEventHandlerThe interface event handler (device arrival and device removal) to unregister from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemUnregisterLogEventHandler¶
Unregisters a selected logging event handler from the system
See also: spinError
Parameters:
hSystemThe system, from which the logging event handler is unregisteredhLogEventHandlerThe logging event handler to unregister from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemUpdateCameras¶
Updates the list of cameras on the system, informing whether there has been any changes
See also: spinError
Parameters:
hSystemThe system, on which the list of attached cameras is updatedpbChangedThe boolean pointer to return whether cameras have arrived on or been removed from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinSystemUpdateCamerasEx¶
Updates the list of cameras on the system, informing whether there has been any changes; manually set whether to update the current interface lists
See also: spinError
Parameters:
hSystemThe system, on which the list of attached cameras is updatedbUpdateInterfacesThe boolean of whether to update the interface listpbChangedThe boolean pointer to return whether cameras have arrived or been removed from the system
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error