Documentation

Byte Reversal/Change Endianess

Reverse little-endian data for big-endian processor

Library

Simulink® Real-Time™ Library for Utilities

Description

You use the Byte Reversal/Change Endianess block for 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.

Block Parameters for Change Endianess

Number of input ports

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

Machine word length

Select one of the following machine word lengths to which to convert the data:

  • Byte

  • Word

  • Double Word

The following is the Byte Reversal block.

Byte Reversal Block Parameters

Number of inputs

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

Was this topic helpful?