Source code for RsSmbv.Implementations.Source.Bb.Nr5G.Scheduling

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SchedulingCls: """Scheduling commands group definition. 587 total commands, 2 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("scheduling", core, parent) @property def cell(self): """cell commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_cell'): from .Cell import CellCls self._cell = CellCls(self._core, self._cmd_group) return self._cell @property def sfn(self): """sfn commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_sfn'): from .Sfn import SfnCls self._sfn = SfnCls(self._core, self._cmd_group) return self._sfn
[docs] def get_ncarrier(self) -> int: """SCPI: [SOURce<HW>]:BB:NR5G:SCHed:NCARrier \n Snippet: value: int = driver.source.bb.nr5G.scheduling.get_ncarrier() \n No command help available \n :return: num_sched_carrier: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SCHed:NCARrier?') return Conversions.str_to_int(response)
[docs] def set_ncarrier(self, num_sched_carrier: int) -> None: """SCPI: [SOURce<HW>]:BB:NR5G:SCHed:NCARrier \n Snippet: driver.source.bb.nr5G.scheduling.set_ncarrier(num_sched_carrier = 1) \n No command help available \n :param num_sched_carrier: No help available """ param = Conversions.decimal_value_to_str(num_sched_carrier) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:SCHed:NCARrier {param}')
# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.AutoManualMode: """SCPI: [SOURce<HW>]:BB:NR5G:SCHeduling:MODE \n Snippet: value: enums.AutoManualMode = driver.source.bb.nr5G.scheduling.get_mode() \n Defines how the scheduling and the content of the different PDSCH allocations is defined and performed. \n :return: scheduling_mode: MANual| AUTO MANual No cross-reference between the settings made for the CORESET DCIs and the PDSCHs settings. Configure the PDSCH allocations manually. AUTO Content and scheduling of the PDSCH according to the configuration of the CORESET DCIs. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SCHeduling:MODE?') return Conversions.str_to_scalar_enum(response, enums.AutoManualMode)
[docs] def set_mode(self, scheduling_mode: enums.AutoManualMode) -> None: """SCPI: [SOURce<HW>]:BB:NR5G:SCHeduling:MODE \n Snippet: driver.source.bb.nr5G.scheduling.set_mode(scheduling_mode = enums.AutoManualMode.AUTO) \n Defines how the scheduling and the content of the different PDSCH allocations is defined and performed. \n :param scheduling_mode: MANual| AUTO MANual No cross-reference between the settings made for the CORESET DCIs and the PDSCHs settings. Configure the PDSCH allocations manually. AUTO Content and scheduling of the PDSCH according to the configuration of the CORESET DCIs. """ param = Conversions.enum_scalar_to_str(scheduling_mode, enums.AutoManualMode) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:SCHeduling:MODE {param}')
[docs] def get_rs_space(self) -> bool: """SCPI: [SOURce<HW>]:BB:NR5G:SCHeduling:RSSPace \n Snippet: value: bool = driver.source.bb.nr5G.scheduling.get_rs_space() \n If enabled, the CCE start index is selected automatically to be within the current search space. \n :return: restr_to_sspace: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SCHeduling:RSSPace?') return Conversions.str_to_bool(response)
[docs] def set_rs_space(self, restr_to_sspace: bool) -> None: """SCPI: [SOURce<HW>]:BB:NR5G:SCHeduling:RSSPace \n Snippet: driver.source.bb.nr5G.scheduling.set_rs_space(restr_to_sspace = False) \n If enabled, the CCE start index is selected automatically to be within the current search space. \n :param restr_to_sspace: 1| ON| 0| OFF """ param = Conversions.bool_to_str(restr_to_sspace) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:SCHeduling:RSSPace {param}')
def clone(self) -> 'SchedulingCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = SchedulingCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group