Byte ordering
Byte ordering on test hardware
Model Configuration Pane: Hardware Implementation
Description
The Byte ordering parameter specifies the endianess for the hardware that you use to test code.
Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.
Dependencies
This parameter is enabled only if you can modify it for the selected hardware.
Settings
Little Endian (default) | Big Endian | UnspecifiedDefault:
Little EndianThe least significant byte comes first.
Big EndianThe most significant byte comes first.
UnspecifiedThe code determines the endianness of the hardware. This choice is the least efficient.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact when Test hardware is the same as production hardware is selected. If it is not selected, no recommendation. |
Programmatic Use
Parameter:
TargetEndianess |
| Type: string | character vector |
Values:
'Unspecified' | 'LittleEndian' |
'BigEndian' |
Default:
'LittleEndian' |
Version History
Introduced in R2006b
See Also
Topics
- Specifying Test Hardware Characteristics (Simulink Coder)
- Hardware Implementation Options (Simulink Coder)
- Hardware Implementation Pane