from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SueCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sue", core, parent)
[docs]
def get_ovrb(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:SUE:OVRB`` \n
Snippet: ``value: int = driver.source.bb.eutra.tcw.sue.get_ovrb()`` \n
Sets the number of RB the allocated RB(s) are shifted with.
:return: offset_vrb: integer Range: 0 to 75
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:SUE:OVRB?')
return Conversions.str_to_int(response)
[docs]
def set_ovrb(self, offset_vrb: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:SUE:OVRB`` \n
Snippet: ``driver.source.bb.eutra.tcw.sue.set_ovrb(offset_vrb = 1)`` \n
Sets the number of RB the allocated RB(s) are shifted with.
:param offset_vrb: integer Range: 0 to 75
"""
param = Conversions.decimal_value_to_str(offset_vrb)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:SUE:OVRB {param}')
[docs]
def get_tsrs(self) -> bool:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:SUE:TSRS`` \n
Snippet: ``value: bool = driver.source.bb.eutra.tcw.sue.get_tsrs()`` \n
Enables/disables the transmission of the SRS. The SRS transmission is optional for this test case.
:return: transmit_srs: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:SUE:TSRS?')
return Conversions.str_to_bool(response)
[docs]
def set_tsrs(self, transmit_srs: bool) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:SUE:TSRS`` \n
Snippet: ``driver.source.bb.eutra.tcw.sue.set_tsrs(transmit_srs = False)`` \n
Enables/disables the transmission of the SRS. The SRS transmission is optional for this test case.
:param transmit_srs: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(transmit_srs)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:SUE:TSRS {param}')
[docs]
def get_ue_id(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:SUE:UEID`` \n
Snippet: ``value: int = driver.source.bb.eutra.tcw.sue.get_ue_id()`` \n
Sets the UE ID/n_RNTI.
:return: ue_idn_rnti: integer Range: 0 to 65535
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:SUE:UEID?')
return Conversions.str_to_int(response)
[docs]
def set_ue_id(self, ue_idn_rnti: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:SUE:UEID`` \n
Snippet: ``driver.source.bb.eutra.tcw.sue.set_ue_id(ue_idn_rnti = 1)`` \n
Sets the UE ID/n_RNTI.
:param ue_idn_rnti: integer Range: 0 to 65535
"""
param = Conversions.decimal_value_to_str(ue_idn_rnti)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:SUE:UEID {param}')