from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StsCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sts", core, parent)
# noinspection PyTypeChecker
[docs]
def get_dlen(self) -> enums.HrpUwbStsDeltaLen:
"""
``[SOURce<HW>]:BB:[LRWPan]:SENS:STS:DLEN`` \n
Snippet: ``value: enums.HrpUwbStsDeltaLen = driver.source.bb.lrWpan.sens.sts.get_dlen()`` \n
Queries the delta length of the scrambled timestamp sequence (STS) . The delta length depends on the HRP UWB mode.
:return: delta_length: DL_4 | DL_8
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:SENS:STS:DLEN?')
return Conversions.str_to_scalar_enum(response, enums.HrpUwbStsDeltaLen)