Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Cc.Allocation.Pusch.Tdomain

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
class TdomainCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("tdomain", core, parent)

[docs] def set(self, mapping_type: enums.MappingType, no_symbols: int, start_symbol: int, carrierComponent=repcap.CarrierComponent.Nr1, allocation=repcap.Allocation.Default) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUSCh:TDOMain`` \n Snippet: ``driver.configure.nrSubMeas.cc.allocation.pusch.tdomain.set(mapping_type = enums.MappingType.A, no_symbols = 1, start_symbol = 1, carrierComponent = repcap.CarrierComponent.Nr1, allocation = repcap.Allocation.Default)`` \n Specifies settings related to the PUSCH allocation in the time domain, for carrier <no>, allocation <a>. The ranges for the symbols have dependencies, see 'Slots and symbols for PUSCH and PUCCH'. :param mapping_type: PUSCH mapping type :param no_symbols: Number of allocated OFDM symbols in each uplink slot. :param start_symbol: Index of the first allocated symbol in each uplink slot. For mapping type A, only 0 is allowed. :param carrierComponent: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') """ param = ArgSingleList().compose_cmd_string(ArgSingle('mapping_type', mapping_type, DataType.Enum, enums.MappingType), ArgSingle('no_symbols', no_symbols, DataType.Integer), ArgSingle('start_symbol', start_symbol, DataType.Integer)) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponent_cmd_val}:ALLocation{allocation_cmd_val}:PUSCh:TDOMain {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class TdomainStruct(StructBase): """ Response structure. Fields: \n - 1 Mapping_Type: enums.MappingType: PUSCH mapping type - 2 No_Symbols: int: Number of allocated OFDM symbols in each uplink slot. - 3 Start_Symbol: int: Index of the first allocated symbol in each uplink slot. For mapping type A, only 0 is allowed. """ __meta_args_list = [ ArgStruct.scalar_enum('Mapping_Type', enums.MappingType), ArgStruct.scalar_int('No_Symbols'), ArgStruct.scalar_int('Start_Symbol')] def __init__(self): StructBase.__init__(self, self) self.Mapping_Type: enums.MappingType = None self.No_Symbols: int = None self.Start_Symbol: int = None
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Nr1, allocation=repcap.Allocation.Default) -> TdomainStruct: """ ``CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUSCh:TDOMain`` \n Snippet: ``value: TdomainStruct = driver.configure.nrSubMeas.cc.allocation.pusch.tdomain.get(carrierComponent = repcap.CarrierComponent.Nr1, allocation = repcap.Allocation.Default)`` \n Specifies settings related to the PUSCH allocation in the time domain, for carrier <no>, allocation <a>. The ranges for the symbols have dependencies, see 'Slots and symbols for PUSCH and PUCCH'. :param carrierComponent: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') :return: structure: for return value, see the help for TdomainStruct structure arguments. """ carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) return self._core.io.query_struct(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponent_cmd_val}:ALLocation{allocation_cmd_val}:PUSCh:TDOMain?', self.__class__.TdomainStruct())