from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class NmodeCls:
"""Nmode commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("nmode", core, parent)
# noinspection PyTypeChecker
[docs]
def get_low_energy(self) -> enums.MeasureScope:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MMODe:NMODe:LENergy \n
Snippet: value: enums.MeasureScope = driver.configure.rfSettings.mmode.nmode.get_low_energy() \n
Specifies measurement mode for LE connection tests in combined signal path scenario.
INTRO_CMD_HELP: For the combined signal path scenario, use: \n
- All 37 data channels can only be measured if signaling application uses all-channel hopping mode.
- Single channel mode enables Tx measurements at the specified RF channel
For the combined signal path scenario, use CONFigure:BLUetooth:SIGN<i>:RFSettings:NMODe:HMODe:LENergy \n
:return: measure_mode: ALL | SINGle
"""
response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MMODe:NMODe:LENergy?')
return Conversions.str_to_scalar_enum(response, enums.MeasureScope)
[docs]
def set_low_energy(self, measure_mode: enums.MeasureScope) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MMODe:NMODe:LENergy \n
Snippet: driver.configure.rfSettings.mmode.nmode.set_low_energy(measure_mode = enums.MeasureScope.ALL) \n
Specifies measurement mode for LE connection tests in combined signal path scenario.
INTRO_CMD_HELP: For the combined signal path scenario, use: \n
- All 37 data channels can only be measured if signaling application uses all-channel hopping mode.
- Single channel mode enables Tx measurements at the specified RF channel
For the combined signal path scenario, use CONFigure:BLUetooth:SIGN<i>:RFSettings:NMODe:HMODe:LENergy \n
:param measure_mode: ALL | SINGle
"""
param = Conversions.enum_scalar_to_str(measure_mode, enums.MeasureScope)
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MMODe:NMODe:LENergy {param}')