from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import enums
from ........ import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class StateCls:
"""State commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("state", core, parent)
# noinspection PyTypeChecker
[docs]
def fetch(self, cell_name: str, bwParts=repcap.BwParts.Default) -> enums.StatePwrControl:
"""SCPI: FETCh:SIGNaling:NRADio:CELL:BWP<bpwid>:POWer:CONTrol:STATe \n
Snippet: value: enums.StatePwrControl = driver.signaling.nradio.cell.bwp.power.control.state.fetch(cell_name = 'abc', bwParts = repcap.BwParts.Default) \n
Queries whether a TPC power control procedure is running for BWP <bb>. For example, whether commanding the UE to maximum
power is still ongoing or already complete. \n
:param cell_name: No help available
:param bwParts: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bwp')
:return: state: Ready or running"""
param = Conversions.value_to_quoted_str(cell_name)
bwParts_cmd_val = self._cmd_group.get_repcap_cmd_value(bwParts, repcap.BwParts)
response = self._core.io.query_str(f'FETCh:SIGNaling:NRADio:CELL:BWP{bwParts_cmd_val}:POWer:CONTrol:STATe? {param}')
return Conversions.str_to_scalar_enum(response, enums.StatePwrControl)