Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Configure.Nr5G.Uplink.Cc.Frame.BwPart.Slot.Allocation.Dmrs.Ap

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ApCls: """Ap commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ap", core, parent)
[docs] def set(self, antenna_ports: List[float], carrierComponent=repcap.CarrierComponent.Default, frame=repcap.Frame.Default, bwPart=repcap.BwPart.Default, slot=repcap.Slot.Default, allocation=repcap.Allocation.Default) -> None: """SCPI: CONFigure[:NR5G]:UL[:CC<cc>]:FRAMe<fr>:BWPart<bwp>:SLOT<sl>:ALLocation<al>:DMRS:AP \n Snippet: driver.applications.k14Xnr5G.configure.nr5G.uplink.cc.frame.bwPart.slot.allocation.dmrs.ap.set(antenna_ports = [1.1, 2.2, 3.3], carrierComponent = repcap.CarrierComponent.Default, frame = repcap.Frame.Default, bwPart = repcap.BwPart.Default, slot = repcap.Slot.Default, allocation = repcap.Allocation.Default) \n Selects the antenna ports for PUSCH transmission. \n :param antenna_ports: The number of numeric values depends on how many layers you have. For a single layer, add one value. For two layers, add two values etc. The value range depends on the codeword to layer mapping you have selected (method RsFsw.Applications.K14x_Nr5G.Configure.Nr5G.Uplink.Cc.Frame.BwPart.Slot.Allocation.ClMapping.set) . :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 slot: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Slot') :param allocation: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Allocation') """ param = Conversions.list_to_csv_str(antenna_ports) 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) slot_cmd_val = self._cmd_group.get_repcap_cmd_value(slot, repcap.Slot) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) self._core.io.write(f'CONFigure:NR5G:UL:CC{carrierComponent_cmd_val}:FRAMe{frame_cmd_val}:BWPart{bwPart_cmd_val}:SLOT{slot_cmd_val}:ALLocation{allocation_cmd_val}:DMRS:AP {param}')
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default, frame=repcap.Frame.Default, bwPart=repcap.BwPart.Default, slot=repcap.Slot.Default, allocation=repcap.Allocation.Default) -> List[float]: """SCPI: CONFigure[:NR5G]:UL[:CC<cc>]:FRAMe<fr>:BWPart<bwp>:SLOT<sl>:ALLocation<al>:DMRS:AP \n Snippet: value: List[float] = driver.applications.k14Xnr5G.configure.nr5G.uplink.cc.frame.bwPart.slot.allocation.dmrs.ap.get(carrierComponent = repcap.CarrierComponent.Default, frame = repcap.Frame.Default, bwPart = repcap.BwPart.Default, slot = repcap.Slot.Default, allocation = repcap.Allocation.Default) \n Selects the antenna ports for PUSCH transmission. \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 slot: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Slot') :param allocation: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Allocation') :return: antenna_ports: The number of numeric values depends on how many layers you have. For a single layer, add one value. For two layers, add two values etc. The value range depends on the codeword to layer mapping you have selected (method RsFsw.Applications.K14x_Nr5G.Configure.Nr5G.Uplink.Cc.Frame.BwPart.Slot.Allocation.ClMapping.set) .""" 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) slot_cmd_val = self._cmd_group.get_repcap_cmd_value(slot, repcap.Slot) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) response = self._core.io.query_bin_or_ascii_float_list(f'CONFigure:NR5G:UL:CC{carrierComponent_cmd_val}:FRAMe{frame_cmd_val}:BWPart{bwPart_cmd_val}:SLOT{slot_cmd_val}:ALLocation{allocation_cmd_val}:DMRS:AP?') return response