Skip to content

Group CIFloat

Modules > 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

spinFloatGetMax (
    spinNodeHandle hNode,
    double * pValue
) 

Retrieves the maximum value of a float node; all potential values must be lesser than or equal to the maximum

See also: spinError

Parameters:

  • hNode The float node of the maximum value to retrieve
  • pValue The 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

spinFloatGetMin (
    spinNodeHandle hNode,
    double * pValue
) 

Retrieves the minimum value of a float node; all potential values must be greater than or equal to the minimum

See also: spinError

Parameters:

  • hNode The float node of the minimum value to retrieve
  • pValue The 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

spinFloatGetRepresentation (
    spinNodeHandle hNode,
    spinRepresentation * pValue
) 

Retrieves the numerical representation of the value of a node; i.e. linear, logarithmic, hexidecimal, MAC address, etc.

See also: spinError

Parameters:

  • hNode The float node of the numerical representation to retrieve
  • pValue The 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

spinFloatGetUnit (
    spinNodeHandle hNode,
    char * pBuf,
    size_t * pBufLen
) 

Retrieves the units of the float node value

See also: spinError

Parameters:

  • hNode The float node of the units to retrieve
  • pBuf The c-string character buffer in which the value units are returned
  • pBufLen The 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

spinFloatGetValue (
    spinNodeHandle hNode,
    double * pValue
) 

Retrieves the value of a float node

See also: spinError

Parameters:

  • hNode The float node of the value to read
  • pValue The double pointer in which the value is returned

Returns:

spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error


function spinFloatGetValueEx

spinFloatGetValueEx (
    spinNodeHandle hNode,
    bool8_t bVerify,
    double * pValue
) 

Retrieves the value of a float node; manually set whether to verify the node

See also: spinError

Parameters:

  • hNode The float node of the value to read
  • pValue The double pointer in which the value is returned

Returns:

spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error


function spinFloatSetValue

spinFloatSetValue (
    spinNodeHandle hNode,
    double value
) 

Sets the value of a float node

See also: spinError

Parameters:

  • hNode The float node having its value changed
  • value The float value to set

Returns:

spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error


function spinFloatSetValueEx

spinFloatSetValueEx (
    spinNodeHandle hNode,
    bool8_t bVerify,
    double value
) 

Sets the value of a float node; manually set whether to verify the node

See also: spinError

Parameters:

  • hNode The float node having its value changed
  • bVerify The boolean of whether to verify the node
  • value The float value to set

Returns:

spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error