Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Introduced in R2006a

Was this topic helpful?