from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PreambleCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("preamble", core, parent)
[docs]
def set(self, mode: bool) -> None:
"""
``[SENSe]:TRACking:PREamble`` \n
Snippet: ``driver.applications.k91Wlan.sense.tracking.preamble.set(mode = False)`` \n
Defines which results are used for preamble tracking prior to the preamble channel estimation.
:param mode: OFF | PAYLoad Payload tracking results are used for preamble tracking prior to the preamble channel estimation ON | VHT (V) HT-LTF Symbols and Payload tracking results are used for preamble tracking prior to the preamble channel estimation.
"""
param = Conversions.bool_to_str(mode)
self._core.io.write(f'SENSe:TRACking:PREamble {param}')
[docs]
def get(self) -> bool:
"""
``[SENSe]:TRACking:PREamble`` \n
Snippet: ``value: bool = driver.applications.k91Wlan.sense.tracking.preamble.get()`` \n
Defines which results are used for preamble tracking prior to the preamble channel estimation.
:return: mode: OFF | PAYLoad Payload tracking results are used for preamble tracking prior to the preamble channel estimation ON | VHT (V) HT-LTF Symbols and Payload tracking results are used for preamble tracking prior to the preamble channel estimation.
"""
response = self._core.io.query_str(f'SENSe:TRACking:PREamble?')
return Conversions.str_to_bool(response)