from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PrachCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("prach", core, parent)
[docs]
def get_configuration(self) -> int:
"""
``[SOURce<HW>]:BB:V5G:UL:PRACh:CONFiguration`` \n
Snippet: ``value: int = driver.source.bb.v5G.uplink.prach.get_configuration()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:PRACh:CONFiguration?')
return Conversions.str_to_int(response)
[docs]
def set_configuration(self, configuration: int) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:PRACh:CONFiguration`` \n
Snippet: ``driver.source.bb.v5G.uplink.prach.set_configuration(configuration = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(configuration)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:PRACh:CONFiguration {param}')
[docs]
def get_foffset(self) -> int:
"""
``[SOURce<HW>]:BB:V5G:UL:PRACh:FOFFset`` \n
Snippet: ``value: int = driver.source.bb.v5G.uplink.prach.get_foffset()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:PRACh:FOFFset?')
return Conversions.str_to_int(response)
[docs]
def set_foffset(self, frequency_offset: int) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:PRACh:FOFFset`` \n
Snippet: ``driver.source.bb.v5G.uplink.prach.set_foffset(frequency_offset = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(frequency_offset)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:PRACh:FOFFset {param}')
[docs]
def get_rset(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:UL:PRACh:RSET`` \n
Snippet: ``value: bool = driver.source.bb.v5G.uplink.prach.get_rset()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:PRACh:RSET?')
return Conversions.str_to_bool(response)
[docs]
def set_rset(self, restricted_set: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:PRACh:RSET`` \n
Snippet: ``driver.source.bb.v5G.uplink.prach.set_rset(restricted_set = False)`` \n
No help available
"""
param = Conversions.bool_to_str(restricted_set)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:PRACh:RSET {param}')