PS_MODIFIER_ENDIAN
code: 166
Attention
Only for the following modules:
Z10sx Odin (Odin-10G-6S-6P)
# set
<module-index>/<port-index> PS_MODIFIER_ENDIAN [<stream_index>, <modifier_index>] <mode>
# get
<module-index>/<port-index> PS_MODIFIER_ENDIAN [<stream_index>, <modifier_index>] ?
Description
Network byte order is Big Endian, where the MSB is assigned with the smallest address.
Xena’s modifier (16-bit/24-bit) inc/dec mode is default to BIG
, which inc/dec starts from the LSB (the largest address). The user can set the mode to LITTLE
, which the modifier inc/dec starts from the MSB (the smallest address)

Fig. 3.17 Example of a 32-bit modifier in Big Endian and Little Endian mode
Actions
set, get
Parameters
mode
: byte, the start mode of the modifier. Default toBIG
.
BIG = 0
LITTLE = 1
Example
# set
input: 0/1 PS_MODIFIER_ENDIAN [0, 0] LITTLE
output: <OK>
# get
input: 0/1 PS_MODIFIER_ENDIAN [0, 0] ?
output: 0/1 PS_MODIFIER_ENDIAN [0, 0] LITTLE