Byte/Value Conversion Functions
These functions are not needed except for applications performing raw bytes manipulation, as with the Raw Byte functions.
Byte-to-value
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.
LJM_ERROR_RETURN LJM_ByteArrayToFLOAT32(
const unsigned char * aBytes,
int RegisterOffset,
int NumFLOAT32,
float * aFLOAT32)
LJM errorcode or 0 for no error.
See also: LJM_FLOAT32ToByteArray
Converts an array of bytes to 32-bit integer 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.
LJM_ERROR_RETURN LJM_ByteArrayToINT32(
const unsigned char * aBytes,
int RegisterOffset,
int NumINT32,
int * aINT32)
LJM errorcode or 0 for no error.
See also: LJM_INT32ToByteArray
Converts an array of bytes to 16-bit unsigned integer 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.
LJM_ERROR_RETURN LJM_ByteArrayToUINT16(
const unsigned char * aBytes,
int RegisterOffset,
int NumUINT16,
unsigned int * aUINT16)
LJM errorcode or 0 for no error.
See also: LJM_UINT16ToByteArray
Converts an array of bytes to 32-bit unsigned integer 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.
LJM_ERROR_RETURN LJM_ByteArrayToUINT32(
const unsigned char * aBytes,
int RegisterOffset,
int NumUINT32,
unsigned int * aUINT32)
LJM errorcode or 0 for no error.
See also: LJM_UINT32ToByteArray
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.
LJM_ERROR_RETURN LJM_FLOAT32ToByteArray(
const float * aFLOAT32,
int RegisterOffset,
int NumFLOAT32,
unsigned char * aBytes)
LJM errorcode or 0 for no error.
See also: LJM_ByteArrayToFLOAT32
Converts an array of 32-bit integer 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.
LJM_ERROR_RETURN LJM_INT32ToByteArray(
const int * aINT32,
int RegisterOffset,
int NumINT32,
unsigned char * aBytes)
LJM errorcode or 0 for no error.
See also: LJM_ByteArrayToINT32
Converts an array of 16-bit unsigned integer 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.
LJM_ERROR_RETURN LJM_UINT16ToByteArray(
const unsigned int * aUINT16,
int RegisterOffset,
int NumUINT16,
unsigned char * aBytes)
LJM errorcode or 0 for no error.
See also: LJM_ByteArrayToUINT16
Converts an array of 32-bit unsigned int 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.
LJM_ERROR_RETURN LJM_UINT32ToByteArray(
const unsigned int * aUINT32,
int RegisterOffset,
int NumUINT32,
unsigned char * aBytes)
LJM errorcode or 0 for no error.
See also: LJM_ByteArrayToUINT32