Source code for RsCMPX_UwbMeas.Implementations.UwbMeas.MultiEval.Ddecoding.Clength

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.StructBase import StructBase
from .....Internal.ArgStruct import ArgStruct
from ..... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class ClengthCls: """Clength commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("clength", core, parent) # noinspection PyTypeChecker
[docs] class ResultData(StructBase): """Response structure. Fields: \n - Reliabiltiy: int: 'Reliability indicator' - Content_Length: int: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_int('Reliabiltiy'), ArgStruct.scalar_int('Content_Length')] def __init__(self): StructBase.__init__(self, self) self.Reliabiltiy: int = None self.Content_Length: int = None
[docs] def fetch(self, ppdu=repcap.Ppdu.Nr1) -> ResultData: """SCPI: FETCh:UWB:MEASurement<Instance>:MEValuation:DDECoding:CLENgth<PPDU> \n Snippet: value: ResultData = driver.uwbMeas.multiEval.ddecoding.clength.fetch(ppdu = repcap.Ppdu.Nr1) \n Returns the decoded data length. \n :param ppdu: optional repeated capability selector. Default value: Nr1 :return: structure: for return value, see the help for ResultData structure arguments.""" ppdu_cmd_val = self._cmd_group.get_repcap_cmd_value(ppdu, repcap.Ppdu) return self._core.io.query_struct(f'FETCh:UWB:MEASurement<Instance>:MEValuation:DDECoding:CLENgth{ppdu_cmd_val}?', self.__class__.ResultData())
[docs] def read(self, ppdu=repcap.Ppdu.Nr1) -> ResultData: """SCPI: READ:UWB:MEASurement<Instance>:MEValuation:DDECoding:CLENgth<PPDU> \n Snippet: value: ResultData = driver.uwbMeas.multiEval.ddecoding.clength.read(ppdu = repcap.Ppdu.Nr1) \n Returns the decoded data length. \n :param ppdu: optional repeated capability selector. Default value: Nr1 :return: structure: for return value, see the help for ResultData structure arguments.""" ppdu_cmd_val = self._cmd_group.get_repcap_cmd_value(ppdu, repcap.Ppdu) return self._core.io.query_struct(f'READ:UWB:MEASurement<Instance>:MEValuation:DDECoding:CLENgth{ppdu_cmd_val}?', self.__class__.ResultData())