Source code for RsCMPX_NrFr2Meas.Implementations.Configure.NrMmwMeas.Cc.Cbandwidth

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
from ..... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class CbandwidthCls: """Cbandwidth commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("cbandwidth", core, parent)
[docs] def set(self, channel_bw: enums.ChannelBw, carrierComponent=repcap.CarrierComponent.Default) -> None: """SCPI: CONFigure:NRMMw:MEASurement<Instance>[:CC<no>]:CBANdwidth \n Snippet: driver.configure.nrMmwMeas.cc.cbandwidth.set(channel_bw = enums.ChannelBw.B050, carrierComponent = repcap.CarrierComponent.Default) \n Specifies the channel bandwidth of carrier <no>. For Signal Path = Network, use[CONFigure:]SIGNaling:NRADio:CELL:RFSettings:UL:BWIDth. \n :param channel_bw: Channel bandwidth 50 MHz to 400 MHz (Bxxx = xxx MHz) . :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') """ param = Conversions.enum_scalar_to_str(channel_bw, enums.ChannelBw) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) self._core.io.write(f'CONFigure:NRMMw:MEASurement<Instance>:CC{carrierComponent_cmd_val}:CBANdwidth {param}')
# noinspection PyTypeChecker
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default) -> enums.ChannelBw: """SCPI: CONFigure:NRMMw:MEASurement<Instance>[:CC<no>]:CBANdwidth \n Snippet: value: enums.ChannelBw = driver.configure.nrMmwMeas.cc.cbandwidth.get(carrierComponent = repcap.CarrierComponent.Default) \n Specifies the channel bandwidth of carrier <no>. For Signal Path = Network, use[CONFigure:]SIGNaling:NRADio:CELL:RFSettings:UL:BWIDth. \n :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :return: channel_bw: Channel bandwidth 50 MHz to 400 MHz (Bxxx = xxx MHz) .""" carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) response = self._core.io.query_str(f'CONFigure:NRMMw:MEASurement<Instance>:CC{carrierComponent_cmd_val}:CBANdwidth?') return Conversions.str_to_scalar_enum(response, enums.ChannelBw)