« Close

Datasheets and User Guides

App Notes

Software & Driver

 

2.8.3.1 - ByteArrayToFLOAT32

Converts an array of bytes to 32-bit float values, performing automatic endian conversions if necessary.

This function is not needed except for applications performing raw byte manipulation, as with the Raw Byte functions.

Syntax

LJM_ERROR_RETURN LJM_ByteArrayToFLOAT32(
                      const unsigned char * aBytes,
                      int RegisterOffset,
                      int NumFLOAT32,
                      float * aFLOAT32)

Parameters

aBytes [in]
The bytes to be converted.
RegisterOffset [in]
The register offset to get the values from in aBytes.
NumFLOAT32 [in]
The number of values to convert.
aFLOAT32 [out]
The converted bytes in 32-bit float value form.

Returns

LJM errorcode or 0 for no error.

Remarks

See also: LJM_FLOAT32ToByteArray