Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Configure.Nr5G.Downlink.Cc.Frame.BwPart.Csi.Slot.Mode

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 ModeCls: """Mode commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mode", core, parent)
[docs] def set(self, configuration: enums.PeriodMode, carrierComponent=repcap.CarrierComponent.Default, frame=repcap.Frame.Default, bwPart=repcap.BwPart.Default, csiRs=repcap.CsiRs.Default) -> None: """SCPI: CONFigure[:NR5G]:DL[:CC<cc>]:FRAMe<fr>:BWPart<bwp>:CSI<csi>:SLOT:MODE \n Snippet: driver.applications.k14Xnr5G.configure.nr5G.downlink.cc.frame.bwPart.csi.slot.mode.set(configuration = enums.PeriodMode.APERiodic, carrierComponent = repcap.CarrierComponent.Default, frame = repcap.Frame.Default, bwPart = repcap.BwPart.Default, csiRs = repcap.CsiRs.Default) \n Selects the transmission method for the CSI reference signal. \n :param configuration: APERiodic Aperiodic transmission. PERiodic Periodic transmission every x slots. :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :param frame: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Frame') :param bwPart: optional repeated capability selector. Default value: Nr1 (settable in the interface 'BwPart') :param csiRs: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Csi') """ param = Conversions.enum_scalar_to_str(configuration, enums.PeriodMode) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) frame_cmd_val = self._cmd_group.get_repcap_cmd_value(frame, repcap.Frame) bwPart_cmd_val = self._cmd_group.get_repcap_cmd_value(bwPart, repcap.BwPart) csiRs_cmd_val = self._cmd_group.get_repcap_cmd_value(csiRs, repcap.CsiRs) self._core.io.write(f'CONFigure:NR5G:DL:CC{carrierComponent_cmd_val}:FRAMe{frame_cmd_val}:BWPart{bwPart_cmd_val}:CSI{csiRs_cmd_val}:SLOT:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default, frame=repcap.Frame.Default, bwPart=repcap.BwPart.Default, csiRs=repcap.CsiRs.Default) -> enums.PeriodMode: """SCPI: CONFigure[:NR5G]:DL[:CC<cc>]:FRAMe<fr>:BWPart<bwp>:CSI<csi>:SLOT:MODE \n Snippet: value: enums.PeriodMode = driver.applications.k14Xnr5G.configure.nr5G.downlink.cc.frame.bwPart.csi.slot.mode.get(carrierComponent = repcap.CarrierComponent.Default, frame = repcap.Frame.Default, bwPart = repcap.BwPart.Default, csiRs = repcap.CsiRs.Default) \n Selects the transmission method for the CSI reference signal. \n :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :param frame: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Frame') :param bwPart: optional repeated capability selector. Default value: Nr1 (settable in the interface 'BwPart') :param csiRs: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Csi') :return: configuration: APERiodic Aperiodic transmission. PERiodic Periodic transmission every x slots.""" carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) frame_cmd_val = self._cmd_group.get_repcap_cmd_value(frame, repcap.Frame) bwPart_cmd_val = self._cmd_group.get_repcap_cmd_value(bwPart, repcap.BwPart) csiRs_cmd_val = self._cmd_group.get_repcap_cmd_value(csiRs, repcap.CsiRs) response = self._core.io.query_str(f'CONFigure:NR5G:DL:CC{carrierComponent_cmd_val}:FRAMe{frame_cmd_val}:BWPart{bwPart_cmd_val}:CSI{csiRs_cmd_val}:SLOT:MODE?') return Conversions.str_to_scalar_enum(response, enums.PeriodMode)