Source code for RsCMX_Signaling.Implementations.Configure.Signaling.Lte.Cell.UeScheduling.Laa.Rb

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class RbCls: """Rb commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("rb", core, parent)
[docs] def set(self, cell_name: str, subframe: int, number_rb: int, start_rb: int) -> None: """SCPI: [CONFigure]:SIGNaling:LTE:CELL:UESCheduling:LAA:RB \n Snippet: driver.configure.signaling.lte.cell.ueScheduling.laa.rb.set(cell_name = 'abc', subframe = 1, number_rb = 1, start_rb = 1) \n Configures the RB allocation for LAA subframes with <Subframe> allocated symbols. \n :param cell_name: No help available :param subframe: No help available :param number_rb: No help available :param start_rb: No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('cell_name', cell_name, DataType.String), ArgSingle('subframe', subframe, DataType.Integer), ArgSingle('number_rb', number_rb, DataType.Integer), ArgSingle('start_rb', start_rb, DataType.Integer)) self._core.io.write(f'CONFigure:SIGNaling:LTE:CELL:UESCheduling:LAA:RB {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """Response structure. Fields: \n - Number_Rb: int: No parameter help available - Start_Rb: int: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_int('Number_Rb'), ArgStruct.scalar_int('Start_Rb')] def __init__(self): StructBase.__init__(self, self) self.Number_Rb: int = None self.Start_Rb: int = None
[docs] def get(self, cell_name: str, subframe: int) -> GetStruct: """SCPI: [CONFigure]:SIGNaling:LTE:CELL:UESCheduling:LAA:RB \n Snippet: value: GetStruct = driver.configure.signaling.lte.cell.ueScheduling.laa.rb.get(cell_name = 'abc', subframe = 1) \n Configures the RB allocation for LAA subframes with <Subframe> allocated symbols. \n :param cell_name: No help available :param subframe: No help available :return: structure: for return value, see the help for GetStruct structure arguments.""" param = ArgSingleList().compose_cmd_string(ArgSingle('cell_name', cell_name, DataType.String), ArgSingle('subframe', subframe, DataType.Integer)) return self._core.io.query_struct(f'CONFigure:SIGNaling:LTE:CELL:UESCheduling:LAA:RB? {param}'.rstrip(), self.__class__.GetStruct())