from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class EtwsCls:
"""Etws commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("etws", core, parent)
[docs]
def get_alert(self) -> bool:
"""SCPI: CONFigure:LTE:SIGNaling<instance>:CBS:MESSage:ETWS:ALERt \n
Snippet: value: bool = driver.configure.cbs.message.etws.get_alert() \n
Deactivates / activates ETWS emergency user alerting. \n
:return: enable: OFF | ON
"""
response = self._core.io.query_str('CONFigure:LTE:SIGNaling<Instance>:CBS:MESSage:ETWS:ALERt?')
return Conversions.str_to_bool(response)
[docs]
def set_alert(self, enable: bool) -> None:
"""SCPI: CONFigure:LTE:SIGNaling<instance>:CBS:MESSage:ETWS:ALERt \n
Snippet: driver.configure.cbs.message.etws.set_alert(enable = False) \n
Deactivates / activates ETWS emergency user alerting. \n
:param enable: OFF | ON
"""
param = Conversions.bool_to_str(enable)
self._core.io.write(f'CONFigure:LTE:SIGNaling<Instance>:CBS:MESSage:ETWS:ALERt {param}')