from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class EnableCls:
"""Enable commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("enable", core, parent)
[docs]
def set(self, tsm_lim_enable: bool, bandwidthD=repcap.BandwidthD.Default) -> None:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:HEOFdm:BW<bandwidth>:ENABle \n
Snippet: driver.configure.multiEval.limit.tsMask.heOfdm.bw.enable.set(tsm_lim_enable = False, bandwidthD = repcap.BandwidthD.Default) \n
Enables or disables the transmit spectrum mask for 802.11ax signals with the specified <bandwidth>, i.e. activates or
deactivates the corresponding limit checks. \n
:param tsm_lim_enable: OFF | ON
:param bandwidthD: optional repeated capability selector. Default value: Bw20 (settable in the interface 'Bw')
"""
param = Conversions.bool_to_str(tsm_lim_enable)
bandwidthD_cmd_val = self._cmd_group.get_repcap_cmd_value(bandwidthD, repcap.BandwidthD)
self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:HEOFdm:BW{bandwidthD_cmd_val}:ENABle {param}')
[docs]
def get(self, bandwidthD=repcap.BandwidthD.Default) -> bool:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:HEOFdm:BW<bandwidth>:ENABle \n
Snippet: value: bool = driver.configure.multiEval.limit.tsMask.heOfdm.bw.enable.get(bandwidthD = repcap.BandwidthD.Default) \n
Enables or disables the transmit spectrum mask for 802.11ax signals with the specified <bandwidth>, i.e. activates or
deactivates the corresponding limit checks. \n
:param bandwidthD: optional repeated capability selector. Default value: Bw20 (settable in the interface 'Bw')
:return: tsm_lim_enable: OFF | ON"""
bandwidthD_cmd_val = self._cmd_group.get_repcap_cmd_value(bandwidthD, repcap.BandwidthD)
response = self._core.io.query_str(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:HEOFdm:BW{bandwidthD_cmd_val}:ENABle?')
return Conversions.str_to_bool(response)