Source code for RsFsw.Implementations.Applications.K10x_Lte.Configure.Lte.Downlink.Cc.Prss.Bw

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 BwCls: """Bw commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("bw", core, parent)
[docs] def set(self, bandwidth: enums.BandwidthLteB, carrierComponent=repcap.CarrierComponent.Default) -> None: """SCPI: CONFigure[:LTE]:DL[:CC<cc>]:PRSS:BW \n Snippet: driver.applications.k10Xlte.configure.lte.downlink.cc.prss.bw.set(bandwidth = enums.BandwidthLteB.BW1_40, carrierComponent = repcap.CarrierComponent.Default) \n Defines the bandwidth of the positioning reference signal. \n :param bandwidth: BW1_40 | BW3_00 | BW5_00 | BW10_00 | BW15_00 | BW20_00 Unit: MHz :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') """ param = Conversions.enum_scalar_to_str(bandwidth, enums.BandwidthLteB) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) self._core.io.write(f'CONFigure:LTE:DL:CC{carrierComponent_cmd_val}:PRSS:BW {param}')
# noinspection PyTypeChecker
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default) -> enums.BandwidthLteB: """SCPI: CONFigure[:LTE]:DL[:CC<cc>]:PRSS:BW \n Snippet: value: enums.BandwidthLteB = driver.applications.k10Xlte.configure.lte.downlink.cc.prss.bw.get(carrierComponent = repcap.CarrierComponent.Default) \n Defines the bandwidth of the positioning reference signal. \n :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :return: bandwidth: BW1_40 | BW3_00 | BW5_00 | BW10_00 | BW15_00 | BW20_00 Unit: MHz""" carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) response = self._core.io.query_str(f'CONFigure:LTE:DL:CC{carrierComponent_cmd_val}:PRSS:BW?') return Conversions.str_to_scalar_enum(response, enums.BandwidthLteB)