from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FpayloadCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("fpayload", core, parent)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:[LRWPan]:OQPSk:FCONfig:FPAYload:STATe`` \n
Snippet: ``value: bool = driver.source.bb.lrWpan.oqpsk.fconfig.fpayload.get_state()`` \n
Queries the state of the forward error correction in the payload. The FEC in payload is enabled or disabled automatically,
depending on the selected operating band and SFD.
:return: fecin_payload: 1 | ON | 0| OFF 0 For [:SOURcehw]:BB:HUWB:OBANd OB780 | OB868 | OB915 | OB2380 | OB2450. For [:SOURcehw]:BB:HUWB:OBANd OB5800 | OB6200 and [:SOURcehw]:BB:HUWB:SFD SFD_0 | SFD_2. 1 For [:SOURcehw]:BB:HUWB:OBANd OB5800 | OB6200 and [:SOURcehw]:BB:HUWB:SFD SFD_1 | SFD_3 | SFD_4.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:OQPSk:FCONfig:FPAYload:STATe?')
return Conversions.str_to_bool(response)