stCPUToLE16 bacro
Declaration:
#define stCPUToLE16(
  Value
)
Parameters:
Value

Value to be converted into little-endian byte ordering.

Return value:

Macro returns swapped value.

Description:

Macro is responsible for converting 16-bit number format, specified for processor, into little-endian.

In case macro is used on processor that works in big-endian, stSwap16 function will be used during conversion. It inverts byte ordering of the specified value. If macro is used on processor that works in little-endian, the macro will not modify the value.

Macro will not be compiled when the functions responsible for byte ordering are excluded from compilation, by setting ST_USE_ENDIANS to 0.

Version:1.0
Header file:ST_Endian.h (include ST_API.h)
See also: byte ordering, ST_USE_ENDIANS, stSwap16
SpaceShadow documentation