from typing import List
from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class GeranCls:
"""Geran commands group definition. 4 total commands, 0 Subgroups, 4 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("geran", core, parent)
[docs]
def get_supported(self) -> List[bool]:
"""SCPI: SENSe:LTE:SIGNaling<instance>:UECapability:IRAT:GERan:SUPPorted \n
Snippet: value: List[bool] = driver.sense.ueCapability.interRat.geran.get_supported() \n
Returns a list of values indicating the support of the individual GERAN operating bands by the UE. \n
:return: supported_band: OFF | ON 11 values: GSM 450, GSM 480, GSM 710, GSM 750, GSM 810, GSM 850, P-GSM 900, E-GSM 900, R-GSM 900, GSM 1800, GSM 1900
"""
response = self._core.io.query_str('SENSe:LTE:SIGNaling<Instance>:UECapability:IRAT:GERan:SUPPorted?')
return Conversions.str_to_bool_list(response)
[docs]
def get_phgeran(self) -> bool:
"""SCPI: SENSe:LTE:SIGNaling<instance>:UECapability:IRAT:GERan:PHGeran \n
Snippet: value: bool = driver.sense.ueCapability.interRat.geran.get_phgeran() \n
Returns whether the UE supports handover to GERAN or not. \n
:return: ps_ho_geran: OFF | ON
"""
response = self._core.io.query_str('SENSe:LTE:SIGNaling<Instance>:UECapability:IRAT:GERan:PHGeran?')
return Conversions.str_to_bool(response)
[docs]
def get_eredirection(self) -> bool:
"""SCPI: SENSe:LTE:SIGNaling<instance>:UECapability:IRAT:GERan:EREDirection \n
Snippet: value: bool = driver.sense.ueCapability.interRat.geran.get_eredirection() \n
Returns whether the UE supports an enhanced redirection to GERAN or not. \n
:return: supported: OFF | ON
"""
response = self._core.io.query_str('SENSe:LTE:SIGNaling<Instance>:UECapability:IRAT:GERan:EREDirection?')
return Conversions.str_to_bool(response)
[docs]
def get_dtm(self) -> bool:
"""SCPI: SENSe:LTE:SIGNaling<instance>:UECapability:IRAT:GERan:DTM \n
Snippet: value: bool = driver.sense.ueCapability.interRat.geran.get_dtm() \n
Returns whether the UE supports DTM in GERAN or not. \n
:return: supported: OFF | ON
"""
response = self._core.io.query_str('SENSe:LTE:SIGNaling<Instance>:UECapability:IRAT:GERan:DTM?')
return Conversions.str_to_bool(response)