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 UserDefinedCls:
"""UserDefined commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("userDefined", core, parent)
[docs]
def set(self, mcs: List[int], secondaryCompCarrier=repcap.SecondaryCompCarrier.Default) -> None:
"""SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection:SCC<Carrier>:FWBCqi:DL:MCSTable:UDEFined \n
Snippet: driver.configure.connection.scc.fwbcqi.downlink.mcsTable.userDefined.set(mcs = [1, 2, 3], secondaryCompCarrier = repcap.SecondaryCompCarrier.Default) \n
Configures a user-defined mapping table that assigns an MCS index value to each possible reported wideband CQI index
value. The table is used for the scheduling type 'Follow WB CQI' if the table mode is set to UDEFined. \n
:param mcs: numeric Comma-separated list of 15 MCS values, for reported CQI index value 1 to 15 The range is restricted by the highest allowed modulation scheme: max 27 with 256-QAM, max 26 with 1024-QAM. Range: 0 to 28
:param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc')
"""
param = Conversions.list_to_csv_str(mcs)
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}:FWBCqi:DL:MCSTable:UDEFined {param}')
[docs]
def get(self, secondaryCompCarrier=repcap.SecondaryCompCarrier.Default) -> List[int]:
"""SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection:SCC<Carrier>:FWBCqi:DL:MCSTable:UDEFined \n
Snippet: value: List[int] = driver.configure.connection.scc.fwbcqi.downlink.mcsTable.userDefined.get(secondaryCompCarrier = repcap.SecondaryCompCarrier.Default) \n
Configures a user-defined mapping table that assigns an MCS index value to each possible reported wideband CQI index
value. The table is used for the scheduling type 'Follow WB CQI' if the table mode is set to UDEFined. \n
:param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc')
:return: mcs: numeric Comma-separated list of 15 MCS values, for reported CQI index value 1 to 15 The range is restricted by the highest allowed modulation scheme: max 27 with 256-QAM, max 26 with 1024-QAM. Range: 0 to 28"""
secondaryCompCarrier_cmd_val = self._cmd_group.get_repcap_cmd_value(secondaryCompCarrier, repcap.SecondaryCompCarrier)
response = self._core.io.query_bin_or_ascii_int_list(f'CONFigure:LTE:SIGNaling<Instance>:CONNection:SCC{secondaryCompCarrier_cmd_val}:FWBCqi:DL:MCSTable:UDEFined?')
return response