« Close

Datasheets and User Guides

App Notes

Software & Driver

 

2.8.3.2 - ByteArrayToINT32

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.

Syntax

LJM_ERROR_RETURN LJM_ByteArrayToINT32(
                      const unsigned char * aBytes,
                      int RegisterOffset,
                      int NumINT32,
                      int * aINT32)

Parameters

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

Returns

LJM errorcode or 0 for no error.

Remarks

See also: LJM_INT32ToByteArray