« Close

Datasheets and User Guides

App Notes

Software & Driver

 

2.8.3.5 - FLOAT32ToByteArray

Converts an array of 32-bit float values to bytes, 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_FLOAT32ToByteArray(
                      const float * aFLOAT32,
                      int RegisterOffset,
                      int NumFLOAT32,
                      unsigned char * aBytes)

Parameters

aFLOAT32 [in]
The array of values to be converted to bytes.
RegisterOffset [in]
The register offset to put the converted values in aBytes.
NumFLOAT32 [in]
The number of values to convert.
aBytes [out]
The converted values in byte form.

Returns

LJM errorcode or 0 for no error.

Remarks

See also: LJM_ByteArrayToFLOAT32