Source code for RsCmwWlanSig.Implementations.Trigger.Rx.MacFrame.DsmLength

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
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class DsmLengthCls: """DsmLength commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("dsmLength", core, parent)
[docs] def set(self, mode: enums.LenMode, length: int = None) -> None: """SCPI: TRIGger:WLAN:SIGNaling<instance>:RX:MACFrame:DSMLength \n Snippet: driver.trigger.rx.macFrame.dsmLength.set(mode = enums.LenMode.DEFault, length = 1) \n Defines the minimum length for the RX frame trigger mode DSSS/CCK Bursts, see method RsCmwWlanSig.Trigger.Rx.MacFrame. btype. \n :param mode: DEFault | UDEFined DEFault: automatically calculated value UDEFined: configured Length :param length: numeric Minimum number of bytes for UDEFined mode Range: 16 to 1500, Unit: byte """ param = ArgSingleList().compose_cmd_string(ArgSingle('mode', mode, DataType.Enum, enums.LenMode), ArgSingle('length', length, DataType.Integer, None, is_optional=True)) self._core.io.write(f'TRIGger:WLAN:SIGNaling<Instance>:RX:MACFrame:DSMLength {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class DsmLengthStruct(StructBase): """Response structure. Fields: \n - Mode: enums.LenMode: DEFault | UDEFined DEFault: automatically calculated value UDEFined: configured Length - Length: int: numeric Minimum number of bytes for UDEFined mode Range: 16 to 1500, Unit: byte""" __meta_args_list = [ ArgStruct.scalar_enum('Mode', enums.LenMode), ArgStruct.scalar_int('Length')] def __init__(self): StructBase.__init__(self, self) self.Mode: enums.LenMode = None self.Length: int = None
[docs] def get(self) -> DsmLengthStruct: """SCPI: TRIGger:WLAN:SIGNaling<instance>:RX:MACFrame:DSMLength \n Snippet: value: DsmLengthStruct = driver.trigger.rx.macFrame.dsmLength.get() \n Defines the minimum length for the RX frame trigger mode DSSS/CCK Bursts, see method RsCmwWlanSig.Trigger.Rx.MacFrame. btype. \n :return: structure: for return value, see the help for DsmLengthStruct structure arguments.""" return self._core.io.query_struct(f'TRIGger:WLAN:SIGNaling<Instance>:RX:MACFrame:DSMLength?', self.__class__.DsmLengthStruct())