Main Content

Byte Reversal/Change Endianess

Reverse little-endian data for big-endian processor

  • Byte Reversal/Change Endianess block

Libraries:
Simulink Real-Time / Utilities

Description

The Byte Reversal/Change Endianess block provides communication between a Simulink® Real-Time™ system and a system running with a processor that is big-endian. Processors compatible with the Intel® 80x86 family are little-endian. For this situation, insert a Byte Reversal/Change Endianess block before the Pack block and another just after the Unpack block. The following is the Change Endianess block.

Examples

Parameters

expand all

Block Parameters for Change Endianess

The number of input ports adjusts to follow this parameter and the number of outputs is equal to the number of inputs.

Programmatic Use

Block Parameter: numInp

Select a machine word length from the list to which to convert the data.

Programmatic Use

Block Parameter:  />

Byte Reversal Block Parameters

The number of input ports adjusts to follow this parameter and the number of outputs is equal to the number of inputs.

Programmatic Use

Block Parameter: numInp

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2006a