from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class XpdcchCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("xpdcch", core, parent)
[docs]
def get_ratba(self) -> float:
"""
``[SOURce<HW>]:BB:V5G:DL:XPDCch:RATBa`` \n
Snippet: ``value: float = driver.source.bb.v5G.downlink.xpdcch.get_ratba()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:XPDCch:RATBa?')
return Conversions.str_to_float(response)
[docs]
def set_ratba(self, ratio_pb_ba: float) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:XPDCch:RATBa`` \n
Snippet: ``driver.source.bb.v5G.downlink.xpdcch.set_ratba(ratio_pb_ba = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(ratio_pb_ba)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:XPDCch:RATBa {param}')