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 TdomainCls:
"""Tdomain commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
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:
"""SCPI: 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
No command help available \n
:param mapping_type: No help available
:param no_symbols: No help available
:param start_symbol: No help available
: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
- Mapping_Type: enums.MappingType: No parameter help available
- No_Symbols: int: No parameter help available
- Start_Symbol: int: No parameter help available"""
__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:
"""SCPI: 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
No command help available \n
: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())