from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class MchannelCls:
"""Mchannel commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mchannel", core, parent)
[docs]
def get_classic(self) -> int:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MCHannel[:CLASsic] \n
Snippet: value: int = driver.configure.bluetooth.measurement.rfSettings.mchannel.get_classic() \n
No command help available \n
:return: measured_channel: No help available
"""
response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MCHannel:CLASsic?')
return Conversions.str_to_int(response)
[docs]
def set_classic(self, measured_channel: int) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MCHannel[:CLASsic] \n
Snippet: driver.configure.bluetooth.measurement.rfSettings.mchannel.set_classic(measured_channel = 1) \n
No command help available \n
:param measured_channel: No help available
"""
param = Conversions.decimal_value_to_str(measured_channel)
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MCHannel:CLASsic {param}')
[docs]
def get_low_energy(self) -> int:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MCHannel:LENergy \n
Snippet: value: int = driver.configure.bluetooth.measurement.rfSettings.mchannel.get_low_energy() \n
No command help available \n
:return: measured_channel: No help available
"""
response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MCHannel:LENergy?')
return Conversions.str_to_int(response)
[docs]
def set_low_energy(self, measured_channel: int) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MCHannel:LENergy \n
Snippet: driver.configure.bluetooth.measurement.rfSettings.mchannel.set_low_energy(measured_channel = 1) \n
No command help available \n
:param measured_channel: No help available
"""
param = Conversions.decimal_value_to_str(measured_channel)
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:RFSettings:MCHannel:LENergy {param}')