PS_OPTIONS

code: 220

# set
<module-index>/<port-index> PS_OPTIONS [<stream_index>] <options>

# get
<module-index>/<port-index> PS_OPTIONS [<stream_index>] ?

Description

Define the set of active “option flags” for the stream. The “set” form sets the flags listed in <options>, and clears the flags not listed. To clear all flags, simply omit <options> in the command.

Actions

set, get

Parameters

  1. options: byte list

  • INCPLDFROM0 = 0 This flag affects the INC8/DEC8/INC16/DEC16 payload types (refer to the PS_PAYLOAD command): With the flag set, the first payload byte/word after the header will be 0 (INC8/INC16) or -1 (DEC8/DEC16). With the flag unset, the default is used: The first payload byte/word of the payload will be equal to <length of header> (INC8/INC16), or -<length of header> - 1 (DEC8/DEC16).

Example

# set
input:  0/1 PS_OPTIONS [0] 0
output: <OK>

# get
input:  0/1 PS_OPTIONS [0] ?
output: 0/1 PS_OPTIONS [0] 0