Source code for RsCMX_Signaling.Implementations.Configure.Signaling.UeAssistance.Nradio.MbwPref

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class MbwPrefCls: """MbwPref commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mbwPref", core, parent)
[docs] def set(self, enable: bool, prohibit_timer: enums.ProhibitTimer = None) -> None: """SCPI: [CONFigure]:SIGNaling:UEASsistance:NRADio:MBWPref \n Snippet: driver.configure.signaling.ueAssistance.nradio.mbwPref.set(enable = False, prohibit_timer = enums.ProhibitTimer.INF) \n Configures requests for the preferred maximum aggregated bandwidth. \n :param enable: Enables/disables transmitting the parameter 'MaxBW-PreferenceConfig-r16' in the IE 'OtherConfig'. :param prohibit_timer: Signaled 'maxBW-PreferenceProhibitTimer-r16'. Sn: n ms SnDm: n.m ms """ param = ArgSingleList().compose_cmd_string(ArgSingle('enable', enable, DataType.Boolean), ArgSingle('prohibit_timer', prohibit_timer, DataType.Enum, enums.ProhibitTimer, is_optional=True)) self._core.io.write(f'CONFigure:SIGNaling:UEASsistance:NRADio:MBWPref {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class MbwPrefStruct(StructBase): """Response structure. Fields: \n - Enable: bool: Enables/disables transmitting the parameter 'MaxBW-PreferenceConfig-r16' in the IE 'OtherConfig'. - Prohibit_Timer: enums.ProhibitTimer: Signaled 'maxBW-PreferenceProhibitTimer-r16'. Sn: n ms SnDm: n.m ms""" __meta_args_list = [ ArgStruct.scalar_bool('Enable'), ArgStruct.scalar_enum('Prohibit_Timer', enums.ProhibitTimer)] def __init__(self): StructBase.__init__(self, self) self.Enable: bool = None self.Prohibit_Timer: enums.ProhibitTimer = None
[docs] def get(self) -> MbwPrefStruct: """SCPI: [CONFigure]:SIGNaling:UEASsistance:NRADio:MBWPref \n Snippet: value: MbwPrefStruct = driver.configure.signaling.ueAssistance.nradio.mbwPref.get() \n Configures requests for the preferred maximum aggregated bandwidth. \n :return: structure: for return value, see the help for MbwPrefStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:SIGNaling:UEASsistance:NRADio:MBWPref?', self.__class__.MbwPrefStruct())