from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TdurationCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("tduration", core, parent)
[docs]
def get_sone(self) -> int:
"""
``[SOURce<HW>]:BB:GNSS:GALileo:OSNMa:CKEY:TDURation:SONE`` \n
Snippet: ``value: int = driver.source.bb.gnss.galileo.osnma.ckey.tduration.get_sone()`` \n
Sets the duration of step 1 for TESLA chain transitions.
:return: duration: integer Range: 1 to 86400
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:CKEY:TDURation:SONE?')
return Conversions.str_to_int(response)
[docs]
def set_sone(self, duration: int) -> None:
"""
``[SOURce<HW>]:BB:GNSS:GALileo:OSNMa:CKEY:TDURation:SONE`` \n
Snippet: ``driver.source.bb.gnss.galileo.osnma.ckey.tduration.set_sone(duration = 1)`` \n
Sets the duration of step 1 for TESLA chain transitions.
:param duration: integer Range: 1 to 86400
"""
param = Conversions.decimal_value_to_str(duration)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:CKEY:TDURation:SONE {param}')
[docs]
def get_stwo(self) -> int:
"""
``[SOURce<HW>]:BB:GNSS:GALileo:OSNMa:CKEY:TDURation:STWO`` \n
Snippet: ``value: int = driver.source.bb.gnss.galileo.osnma.ckey.tduration.get_stwo()`` \n
Sets the duration of step 2 for TESLA chain transitions.
:return: duration: integer Range: 1 to 86400
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:CKEY:TDURation:STWO?')
return Conversions.str_to_int(response)
[docs]
def set_stwo(self, duration: int) -> None:
"""
``[SOURce<HW>]:BB:GNSS:GALileo:OSNMa:CKEY:TDURation:STWO`` \n
Snippet: ``driver.source.bb.gnss.galileo.osnma.ckey.tduration.set_stwo(duration = 1)`` \n
Sets the duration of step 2 for TESLA chain transitions.
:param duration: integer Range: 1 to 86400
"""
param = Conversions.decimal_value_to_str(duration)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:CKEY:TDURation:STWO {param}')