from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class Is3Cls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("is3", core, parent)
[docs]
def get_ort_cover(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:IS3:ORTCover`` \n
Snippet: ``value: int = driver.source.bb.eutra.tcw.is3.get_ort_cover()`` \n
Queries the used resource index n_PUCCH.
:return: ortho_cover: integer Range: 2 to 2
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:IS3:ORTCover?')
return Conversions.str_to_int(response)
[docs]
def get_plevel(self) -> str:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:IS3:PLEVel`` \n
Snippet: ``value: str = driver.source.bb.eutra.tcw.is3.get_plevel()`` \n
Queries the power level of the interfering signal.
:return: power_level: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:IS3:PLEVel?')
return trim_str_response(response)
# noinspection PyTypeChecker
[docs]
def get_pr_condition(self) -> enums.EutraTcwPropagCond:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:IS3:PRCOndition`` \n
Snippet: ``value: enums.EutraTcwPropagCond = driver.source.bb.eutra.tcw.is3.get_pr_condition()`` \n
Selects a predefined multipath fading propagation conditions. The settings of the fading simulator are adjusted according
to the corresponding channel model as defined in 3GPP TS 36.141, Annex B.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:IS3:PRCOndition?')
return Conversions.str_to_scalar_enum(response, enums.EutraTcwPropagCond)