Group CIFloat¶
The functions in this section provide access to float nodes using double as the data type. This includes value getters and setters, min and max functions, and node representation.
Public Functions¶
| Type | Name |
|---|---|
| spinFloatGetMax (spinNodeHandle hNode, double * pValue) |
|
| spinFloatGetMin (spinNodeHandle hNode, double * pValue) |
|
| spinFloatGetRepresentation (spinNodeHandle hNode, spinRepresentation * pValue) |
|
| spinFloatGetUnit (spinNodeHandle hNode, char * pBuf, size_t * pBufLen) |
|
| spinFloatGetValue (spinNodeHandle hNode, double * pValue) |
|
| spinFloatGetValueEx (spinNodeHandle hNode, bool8_t bVerify, double * pValue) |
|
| spinFloatSetValue (spinNodeHandle hNode, double value) |
|
| spinFloatSetValueEx (spinNodeHandle hNode, bool8_t bVerify, double value) |
Public Functions Documentation¶
function spinFloatGetMax¶
Retrieves the maximum value of a float node; all potential values must be lesser than or equal to the maximum
See also: spinError
Parameters:
hNodeThe float node of the maximum value to retrievepValueThe double pointer in which the maximum value is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinFloatGetMin¶
Retrieves the minimum value of a float node; all potential values must be greater than or equal to the minimum
See also: spinError
Parameters:
hNodeThe float node of the minimum value to retrievepValueThe double pointer in which the minimum value is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinFloatGetRepresentation¶
Retrieves the numerical representation of the value of a node; i.e. linear, logarithmic, hexidecimal, MAC address, etc.
See also: spinError
Parameters:
hNodeThe float node of the numerical representation to retrievepValueThe representation enum pointer in which the type of numerical representation is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinFloatGetUnit¶
Retrieves the units of the float node value
See also: spinError
Parameters:
hNodeThe float node of the units to retrievepBufThe c-string character buffer in which the value units are returnedpBufLenThe unsigned integer pointer in which the length of the c-string is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinFloatGetValue¶
Retrieves the value of a float node
See also: spinError
Parameters:
hNodeThe float node of the value to readpValueThe double pointer in which the value is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinFloatGetValueEx¶
Retrieves the value of a float node; manually set whether to verify the node
See also: spinError
Parameters:
hNodeThe float node of the value to readpValueThe double pointer in which the value is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinFloatSetValue¶
Sets the value of a float node
See also: spinError
Parameters:
hNodeThe float node having its value changedvalueThe float value to set
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinFloatSetValueEx¶
Sets the value of a float node; manually set whether to verify the node
See also: spinError
Parameters:
hNodeThe float node having its value changedbVerifyThe boolean of whether to verify the nodevalueThe float value to set
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error