Source code for RsCmwLteSig.Implementations.Configure.RfSettings.Scc.UserDefined.Channel.Downlink.Maximum

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class MaximumCls: """Maximum commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("maximum", core, parent)
[docs] def set(self, channel: int, secondaryCompCarrier=repcap.SecondaryCompCarrier.Default) -> None: """SCPI: CONFigure:LTE:SIGNaling<instance>:RFSettings:SCC<Carrier>:UDEFined:CHANnel:DL:MAXimum \n Snippet: driver.configure.rfSettings.scc.userDefined.channel.downlink.maximum.set(channel = 1, secondaryCompCarrier = repcap.SecondaryCompCarrier.Default) \n Configures channel numbers for the user-defined band: the minimum downlink channel number and the maximum downlink channel number. Combinations that result in frequencies outside of the allowed range are corrected automatically. \n :param channel: decimal Range: 0 to 262143 :param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc') """ param = Conversions.decimal_value_to_str(channel) secondaryCompCarrier_cmd_val = self._cmd_group.get_repcap_cmd_value(secondaryCompCarrier, repcap.SecondaryCompCarrier) self._core.io.write_with_opc(f'CONFigure:LTE:SIGNaling<Instance>:RFSettings:SCC{secondaryCompCarrier_cmd_val}:UDEFined:CHANnel:DL:MAXimum {param}')
[docs] def get(self, secondaryCompCarrier=repcap.SecondaryCompCarrier.Default) -> int: """SCPI: CONFigure:LTE:SIGNaling<instance>:RFSettings:SCC<Carrier>:UDEFined:CHANnel:DL:MAXimum \n Snippet: value: int = driver.configure.rfSettings.scc.userDefined.channel.downlink.maximum.get(secondaryCompCarrier = repcap.SecondaryCompCarrier.Default) \n Configures channel numbers for the user-defined band: the minimum downlink channel number and the maximum downlink channel number. Combinations that result in frequencies outside of the allowed range are corrected automatically. \n :param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc') :return: channel: decimal Range: 0 to 262143""" secondaryCompCarrier_cmd_val = self._cmd_group.get_repcap_cmd_value(secondaryCompCarrier, repcap.SecondaryCompCarrier) response = self._core.io.query_str_with_opc(f'CONFigure:LTE:SIGNaling<Instance>:RFSettings:SCC{secondaryCompCarrier_cmd_val}:UDEFined:CHANnel:DL:MAXimum?') return Conversions.str_to_int(response)