Byte Reversal
Reverse the byte order in the input word.
blockType: ByteReversal
Path in the library:
|
Description
Block Byte Reversal changes the order of bytes in the data entered into the block. Use this block when the process interacts between target computers with different byte order, for example, between Intel® processors with forward byte order and other processors with reverse byte order. Texas Instruments processors® use direct byte order by default.
To exchange data between processors with different byte order, place a block Byte Reversal immediately before the sending block and immediately after the receiving block.
Ports
Input
#
IN_1
—
data for conversion
scalar | vector | the matrix
Details
The data for which the block changes the byte order. The number of input ports used by the unit depends on the value specified for the parameter Number of inputs.
| Data types |
|
| Complex numbers support |
No |
Output
#
OUT_1
—
converted data
scalar | vector | the matrix
Details
Data with a changed byte order. The number of output ports used by the unit depends on the value specified for the parameter Number of inputs. Each input port is mapped to a corresponding output port. The data arriving at the input port IN_1 is transmitted through the output port OUT_1 and so on.
| Data types |
|
| Complex numbers support |
No |
Parameters
Parameters
#
Number of inputs —
number of block input ports
Int64 integer
Details
Specify the number of block input ports. The block creates a specified number of input and output ports. Each input port is mapped to a corresponding output port. The data arriving at the input port IN_1 is transmitted through the output port OUT_1 and so on.
The reverse byte order does not change the data type. Input and output data store the same data types.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |