In order to be able to easily and quickly identify the byte order in the memory there is a global constant in which the manufacturer of the controller sets the valid configuration.
Example:
gc_eENDIANESS : ENDIANESS := ENDIANESS.LITTLE;
The Enum data type ENDIANESS is defined as follows:
UNKNOWN |
0 |
|
LITTLE |
1 |
(* for example, Intel *) |
BIG |
2 |
(* for example, Motorola *) |