Source code for RsCmwLteSig.Implementations.Configure.Connection.Scc.Rmc.Uplink

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
from ...... import enums
from ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class UplinkCls: """Uplink commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("uplink", core, parent)
[docs] def set(self, number_rb: enums.NumberRb, modulation: enums.Modulation, trans_block_size_idx: enums.TransBlockSizeIdx, secondaryCompCarrier=repcap.SecondaryCompCarrier.Default) -> None: """SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection:SCC<Carrier>:RMC:UL \n Snippet: driver.configure.connection.scc.rmc.uplink.set(number_rb = enums.NumberRb.N1, modulation = enums.Modulation.Q1024, trans_block_size_idx = enums.TransBlockSizeIdx.T1, secondaryCompCarrier = repcap.SecondaryCompCarrier.Default) \n Configures an uplink reference measurement channel (RMC) with contiguous allocation. INTRO_CMD_HELP: Depending on other settings, only a subset of the listed values is allowed, see: \n - 'Scheduling type RMC' - 'Scheduling type RMC for eMTC' - 'Scheduling type RMC for LAA' \n :param number_rb: ZERO | N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | N9 | N10 | N12 | N15 | N16 | N17 | N18 | N20 | N21 | N24 | N25 | N27 | N30 | N32 | N36 | N40 | N42 | N45 | N48 | N50 | N54 | N60 | N64 | N72 | N75 | N80 | N81 | N83 | N90 | N92 | N96 | N100 Number of allocated resource blocks :param modulation: QPSK | Q16 | Q64 | Q256 Modulation type QPSK | 16-QAM | 64-QAM | 256-QAM :param trans_block_size_idx: ZERO | T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 Transport block size index. Use KEEP to select a compatible value. :param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc') """ param = ArgSingleList().compose_cmd_string(ArgSingle('number_rb', number_rb, DataType.Enum, enums.NumberRb), ArgSingle('modulation', modulation, DataType.Enum, enums.Modulation), ArgSingle('trans_block_size_idx', trans_block_size_idx, DataType.Enum, enums.TransBlockSizeIdx)) secondaryCompCarrier_cmd_val = self._cmd_group.get_repcap_cmd_value(secondaryCompCarrier, repcap.SecondaryCompCarrier) self._core.io.write(f'CONFigure:LTE:SIGNaling<Instance>:CONNection:SCC{secondaryCompCarrier_cmd_val}:RMC:UL {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class UplinkStruct(StructBase): """Response structure. Fields: \n - Number_Rb: enums.NumberRb: ZERO | N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | N9 | N10 | N12 | N15 | N16 | N17 | N18 | N20 | N21 | N24 | N25 | N27 | N30 | N32 | N36 | N40 | N42 | N45 | N48 | N50 | N54 | N60 | N64 | N72 | N75 | N80 | N81 | N83 | N90 | N92 | N96 | N100 Number of allocated resource blocks - Modulation: enums.Modulation: QPSK | Q16 | Q64 | Q256 Modulation type QPSK | 16-QAM | 64-QAM | 256-QAM - Trans_Block_Size_Idx: enums.TransBlockSizeIdx: ZERO | T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 Transport block size index. Use KEEP to select a compatible value.""" __meta_args_list = [ ArgStruct.scalar_enum('Number_Rb', enums.NumberRb), ArgStruct.scalar_enum('Modulation', enums.Modulation), ArgStruct.scalar_enum('Trans_Block_Size_Idx', enums.TransBlockSizeIdx)] def __init__(self): StructBase.__init__(self, self) self.Number_Rb: enums.NumberRb = None self.Modulation: enums.Modulation = None self.Trans_Block_Size_Idx: enums.TransBlockSizeIdx = None
[docs] def get(self, secondaryCompCarrier=repcap.SecondaryCompCarrier.Default) -> UplinkStruct: """SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection:SCC<Carrier>:RMC:UL \n Snippet: value: UplinkStruct = driver.configure.connection.scc.rmc.uplink.get(secondaryCompCarrier = repcap.SecondaryCompCarrier.Default) \n Configures an uplink reference measurement channel (RMC) with contiguous allocation. INTRO_CMD_HELP: Depending on other settings, only a subset of the listed values is allowed, see: \n - 'Scheduling type RMC' - 'Scheduling type RMC for eMTC' - 'Scheduling type RMC for LAA' \n :param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc') :return: structure: for return value, see the help for UplinkStruct structure arguments.""" secondaryCompCarrier_cmd_val = self._cmd_group.get_repcap_cmd_value(secondaryCompCarrier, repcap.SecondaryCompCarrier) return self._core.io.query_struct(f'CONFigure:LTE:SIGNaling<Instance>:CONNection:SCC{secondaryCompCarrier_cmd_val}:RMC:UL?', self.__class__.UplinkStruct())