DatParity
SCPI Command :
SBUS<*>:SWIRe:FRAMe<*>:DATParity
- Commands in total: 1Subgroups: 0Direct child commands: 1
- get(serialBus=SerialBus.Default, frame=Frame.Default) SbusSwireFrameState[source]
# SBUS<*>:SWIRe:FRAMe<*>:DATParity value: enums.SbusSwireFrameState = driver.sbus.swire.frame.datParity.get(serialBus = repcap.SerialBus.Default, frame = repcap.Frame.Default)
If the frame has the Data field, the command returns the parity state of this field, which can take values of OK or PARity. The Data field only appears in Data and Time frames, see Figure ‘SpaceWire data characters’ and Figure ‘SpaceWire control codes’. If the frame has no Data field, the command can return the states LENGth, AMBiguous or INComplete of the frame, as described below.
- Parameters:
serialBus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Sbus’)
frame – optional repeated capability selector. Default value: Ix1 (settable in the interface ‘Frame’)
- Returns:
parity_data: OK | PARity | LENGth | AMBiguous | INComplete
OK: The parity check for the Data field passes.
PARity: The parity of the Data field is not correct.
LENGth: Regardless of the Data field, the length of the frame is not as expected, indicating an error
AMBiguous: Regardless of the Data field, the frame is ambiguous.
INComplete: Regardless of the Data field, the frame is incomplete.