from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class RbPositionCls:
"""RbPosition commands group definition. 2 total commands, 1 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("rbPosition", core, parent)
@property
def downlink(self):
"""downlink commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_downlink'):
from .Downlink import DownlinkCls
self._downlink = DownlinkCls(self._core, self._cmd_group)
return self._downlink
# noinspection PyTypeChecker
[docs]
def get_uplink(self) -> enums.RbPosition:
"""SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection[:PCC]:RMC:RBPosition:UL \n
Snippet: value: enums.RbPosition = driver.configure.connection.pcc.rmc.rbPosition.get_uplink() \n
Selects the position of the allocated uplink resource blocks, for contiguous allocation.
INTRO_CMD_HELP: Depending on other settings, only a subset of the listed values is allowed, see: \n
- 'Scheduling type RMC'
- 'Scheduling type RMC for eMTC'
- 'Scheduling type RMC for LAA' \n
:return: position: LOW | HIGH | MID | P0 | P1 | P2 | P3 | P4 | P6 | P7 | P8 | P9 | P10 | P11 | P12 | P13 | P14 | P15 | P16 | P19 | P20 | P21 | P22 | P24 | P25 | P28 | P30 | P31 | P33 | P36 | P37 | P39 | P40 | P43 | P44 | P45 | P48 | P49 | P50 | P51 | P52 | P54 | P56 | P57 | P58 | P62 | P63 | P66 | P68 | P70 | P74 | P75 | P83 | P96 | P99
"""
response = self._core.io.query_str('CONFigure:LTE:SIGNaling<Instance>:CONNection:PCC:RMC:RBPosition:UL?')
return Conversions.str_to_scalar_enum(response, enums.RbPosition)
[docs]
def set_uplink(self, position: enums.RbPosition) -> None:
"""SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection[:PCC]:RMC:RBPosition:UL \n
Snippet: driver.configure.connection.pcc.rmc.rbPosition.set_uplink(position = enums.RbPosition.FULL) \n
Selects the position of the allocated uplink resource blocks, for contiguous allocation.
INTRO_CMD_HELP: Depending on other settings, only a subset of the listed values is allowed, see: \n
- 'Scheduling type RMC'
- 'Scheduling type RMC for eMTC'
- 'Scheduling type RMC for LAA' \n
:param position: LOW | HIGH | MID | P0 | P1 | P2 | P3 | P4 | P6 | P7 | P8 | P9 | P10 | P11 | P12 | P13 | P14 | P15 | P16 | P19 | P20 | P21 | P22 | P24 | P25 | P28 | P30 | P31 | P33 | P36 | P37 | P39 | P40 | P43 | P44 | P45 | P48 | P49 | P50 | P51 | P52 | P54 | P56 | P57 | P58 | P62 | P63 | P66 | P68 | P70 | P74 | P75 | P83 | P96 | P99
"""
param = Conversions.enum_scalar_to_str(position, enums.RbPosition)
self._core.io.write(f'CONFigure:LTE:SIGNaling<Instance>:CONNection:PCC:RMC:RBPosition:UL {param}')
def clone(self) -> 'RbPositionCls':
"""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 = RbPositionCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group