Source code for RsCmwBluetoothMeas.Implementations.Configure.MultiEval.Limit.Edrate.Pencoding.Ssequence

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.Types import DataType
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
from .......Internal.ArgSingleList import ArgSingleList
from .......Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SsequenceCls: """Ssequence commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ssequence", core, parent)
[docs] def set(self, sync_bit_errors: int, trailer_bit_errs: int, sync_bit_enable: bool, trailer_bit_enable: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:EDRate:PENCoding:SSEQuence \n Snippet: driver.configure.multiEval.limit.edrate.pencoding.ssequence.set(sync_bit_errors = 1, trailer_bit_errs = 1, sync_bit_enable = False, trailer_bit_enable = False) \n Defines the limit for the differential phase encoding measurement in combined signal path. \n :param sync_bit_errors: numeric Upper limit for sync bit errors. Range: 0 to 1000 :param trailer_bit_errs: numeric Upper limit for trailer bit errors. Range: 0 to 1000 :param sync_bit_enable: OFF | ON Disable or enable the limit check. :param trailer_bit_enable: OFF | ON Disable or enable the limit check. """ param = ArgSingleList().compose_cmd_string(ArgSingle('sync_bit_errors', sync_bit_errors, DataType.Integer), ArgSingle('trailer_bit_errs', trailer_bit_errs, DataType.Integer), ArgSingle('sync_bit_enable', sync_bit_enable, DataType.Boolean), ArgSingle('trailer_bit_enable', trailer_bit_enable, DataType.Boolean)) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:EDRate:PENCoding:SSEQuence {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class SsequenceStruct(StructBase): """Response structure. Fields: \n - Sync_Bit_Errors: int: numeric Upper limit for sync bit errors. Range: 0 to 1000 - Trailer_Bit_Errs: int: numeric Upper limit for trailer bit errors. Range: 0 to 1000 - Sync_Bit_Enable: bool: OFF | ON Disable or enable the limit check. - Trailer_Bit_Enable: bool: OFF | ON Disable or enable the limit check.""" __meta_args_list = [ ArgStruct.scalar_int('Sync_Bit_Errors'), ArgStruct.scalar_int('Trailer_Bit_Errs'), ArgStruct.scalar_bool('Sync_Bit_Enable'), ArgStruct.scalar_bool('Trailer_Bit_Enable')] def __init__(self): StructBase.__init__(self, self) self.Sync_Bit_Errors: int = None self.Trailer_Bit_Errs: int = None self.Sync_Bit_Enable: bool = None self.Trailer_Bit_Enable: bool = None
[docs] def get(self) -> SsequenceStruct: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:EDRate:PENCoding:SSEQuence \n Snippet: value: SsequenceStruct = driver.configure.multiEval.limit.edrate.pencoding.ssequence.get() \n Defines the limit for the differential phase encoding measurement in combined signal path. \n :return: structure: for return value, see the help for SsequenceStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:EDRate:PENCoding:SSEQuence?', self.__class__.SsequenceStruct())