from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SigSymbolCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sigSymbol", core, parent)
[docs]
def set(self, state: bool) -> None:
"""
``[SENSe]:DEMod:FORMat:SIGSymbol`` \n
Snippet: ``driver.applications.k91Wlan.sense.demod.formatPy.sigSymbol.set(state = False)`` \n
Activates and deactivates signal symbol field decoding. For IEEE 802.11b this command can only be queried as the decoding
of the signal field is always performed for this standard.
:param state: OFF | 0 Deactivates signal symbol field decoding. All PPDUs are assumed to have the specified PPDU format / PSDU modulation, regardless of the actual format or modulation. ON | 1 If activated, the signal symbol field of the PPDU is analyzed to determine the details of the PPDU. Only PPDUs which match the PPDU type/ PSDU modulation defined by method ``RsFsw.applications.k91Wlan.sense.demod.formatPy.banalyze.set()`` and method ``RsFsw.applications.k91Wlan.sense.demod.formatPy.banalyze.btype.set()`` are considered in results analysis.
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SENSe:DEMod:FORMat:SIGSymbol {param}')
[docs]
def get(self) -> bool:
"""
``[SENSe]:DEMod:FORMat:SIGSymbol`` \n
Snippet: ``value: bool = driver.applications.k91Wlan.sense.demod.formatPy.sigSymbol.get()`` \n
Activates and deactivates signal symbol field decoding. For IEEE 802.11b this command can only be queried as the decoding
of the signal field is always performed for this standard.
:return: state: OFF | 0 Deactivates signal symbol field decoding. All PPDUs are assumed to have the specified PPDU format / PSDU modulation, regardless of the actual format or modulation. ON | 1 If activated, the signal symbol field of the PPDU is analyzed to determine the details of the PPDU. Only PPDUs which match the PPDU type/ PSDU modulation defined by method ``RsFsw.applications.k91Wlan.sense.demod.formatPy.banalyze.set()`` and method ``RsFsw.applications.k91Wlan.sense.demod.formatPy.banalyze.btype.set()`` are considered in results analysis.
"""
response = self._core.io.query_str(f'SENSe:DEMod:FORMat:SIGSymbol?')
return Conversions.str_to_bool(response)