CodParity
SCPI Command :
SBUS<*>:SWIRe:FRAMe<*>:CODParity
- Commands in total: 1Subgroups: 0Direct child commands: 1
- get(serialBus=SerialBus.Default, frame=Frame.Default) SbusSwireFrameState[source]
# SBUS<*>:SWIRe:FRAMe<*>:CODParity value: enums.SbusSwireFrameState = driver.sbus.swire.frame.codParity.get(serialBus = repcap.SerialBus.Default, frame = repcap.Frame.Default)
If the frame has the FCT, EOP, EEP or Code field, the command returns the parity state of this field, which can take values of OK or PARity. For a description of these fields, see ‘SpaceWire basics’. If the frame has none of these fields, 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_code: OK | PARity | LENGth | AMBiguous | INComplete
OK: The parity check for the field covered by this parity bit passes.
PARity: The parity of the field is not correct.
LENGth: Regardless of the field, the length of the frame is not as expected, indicating an error.
AMBiguous: Regardless of the field, the frame is ambiguous.
INComplete: Regardless of the field, the frame is incomplete.