Group CInterface¶
The functions in this section provide access to information, objects, and functionality of interfaces. This includes camera list and nodemap retrieval, event handler registration, and interface release.
Public Functions¶
Public Functions Documentation¶
function spinInterfaceGetCameras¶
Retrieves a camera list from an interface; camera lists must be created and destroy
See also: spinCameraListCreateEmpty()
See also: spinCameraListDestroy()
See also: spinError
Parameters:
hInterfaceThe interface of the camera list to retrievehCameraListThe camera list to house the cameras from the interface
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceGetCamerasEx¶
spinInterfaceGetCamerasEx (
spinInterface hInterface,
bool8_t bUpdateCameras,
spinCameraList hCameraList
)
Retrieves a camera list from an interface; manually set whether to update the cameras; camera lists must be created and destroyed
See also: spinCameraListCreateEmpty()
See also: spinCameraListDestroy()
See also: spinError
Parameters:
hInterfaceThe interface of the camera list to retrievebUpdateCamerasThe boolean of whether or not to update the camerashCameraListThe camera list to house the cameras from the interface
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceGetTLNodeMap¶
Retrieves the transport layer nodemap from an interface
See also: spinError
Parameters:
hInterfaceThe interface of the nodemap to retrievephNodeMapThe nodemap handle pointer in which the transport layer interface nodemap is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceIsInUse¶
Checks whether an interface is in use
See also: spinError
Parameters:
hInterfaceThe interface to checkpbIsInUseThe boolean pointer to return whether or not the interface is in use
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceRegisterDeviceArrivalEventHandler¶
spinInterfaceRegisterDeviceArrivalEventHandler (
spinInterface hInterface,
spinDeviceArrivalEventHandler hDeviceArrivalEventHandler
)
Registers a device arrival event handler on an interface (event handlers registered in this way must be unregistered)
See also: spinError
Parameters:
hInterfaceThe interface on which to register the device arrival event handlerhDeviceArrivalEventHandlerThe device arrival event handler to register
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceRegisterDeviceRemovalEventHandler¶
spinInterfaceRegisterDeviceRemovalEventHandler (
spinInterface hInterface,
spinDeviceRemovalEventHandler hDeviceRemovalEventHandler
)
Registers a device removal event handler on an interface (event handlers registered in this way must be unregistered)
See also: spinError
Parameters:
hInterfacethe Interface on which to register the device removal event handlerhDeviceRemovalEventHandlerThe device removal event handler to register
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceRegisterInterfaceEventHandler¶
spinInterfaceRegisterInterfaceEventHandler (
spinInterface hInterface,
spinInterfaceEventHandler hInterfaceEventHandler
)
Registers an interface event handler (both device arrival and device removal) on an interface
See also: spinError
Parameters:
hInterfaceThe interface on which to register the interface event handlerhInterfaceEventHandlerThe interface event handler to register
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceRelease¶
Releases an interface
See also: spinError
Parameters:
hInterfaceThe interface to release
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceSendActionCommand¶
spinInterfaceSendActionCommand (
spinInterface hInterface,
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 interface
See also: spinError
Parameters:
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 spinInterfaceUnregisterDeviceArrivalEventHandler¶
spinInterfaceUnregisterDeviceArrivalEventHandler (
spinInterface hInterface,
spinDeviceArrivalEventHandler hDeviceArrivalEventHandler
)
Unregisters a device arrival event handler from an interface
See also: spinError
Parameters:
hInterfaceThe interface from which to unregister the device arrival event handlerhDeviceArrivalEventHandlerThe device arrival event handler to unregister
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceUnregisterDeviceRemovalEventHandler¶
spinInterfaceUnregisterDeviceRemovalEventHandler (
spinInterface hInterface,
spinDeviceRemovalEventHandler hDeviceRemovalEventHandler
)
Unregisters a device removal event handler from an interface
See also: spinError
Parameters:
hInterfaceThe interface from which to unregister the device removal event handlerhDeviceRemovalEventHandlerThe device removal event handler to unregister
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceUnregisterInterfaceEventHandler¶
spinInterfaceUnregisterInterfaceEventHandler (
spinInterface hInterface,
spinInterfaceEventHandler hInterfaceEventHandler
)
Unregisters an interface event handler from an interface
See also: spinError
Parameters:
hInterfaceThe interface from which to unregister the interface event handlerhInterfaceEventHandlerThe interface event handler to unregister
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinInterfaceUpdateCameras¶
Checks whether any cameras have been connected or disconnected on an interface
See also: spinError
Parameters:
hInterfaceThe interface of the list of attached cameras to updatepbChangedThe boolean pointer to return whether or not the cameras have changed
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error