from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PhroCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("phro", core, parent)
# noinspection PyTypeChecker
[docs]
class CwordStruct(StructBase):
"""
Structure for reading output parameters. Fields: \n
- Dpattern: str: numeric
- Bitcount: int: integer Range: 20 to 20
"""
__meta_args_list = [
ArgStruct.scalar_raw_str('Dpattern'),
ArgStruct.scalar_int('Bitcount')]
def __init__(self):
StructBase.__init__(self, self)
self.Dpattern: str=None
self.Bitcount: int=None
[docs]
def get_cword(self) -> CwordStruct:
"""
``[SOURce<HW>]:BB:LRWPan:EMLLd:FCONfig:PHRO:CWORd`` \n
Snippet: ``value: CwordStruct = driver.source.bb.lrWpan.emlld.fconfig.phro.get_cword()`` \n
Requires [:SOURce<hw>]:BB:LRWPan:EMLLd | SENS:PHR:DRM MDR. Queries the PHR1 codeword in hexadecimal.
:return: structure: for return value, see the help for CwordStruct structure arguments.
"""
return self._core.io.query_struct('SOURce<HwInstance>:BB:LRWPan:EMLLd:FCONfig:PHRO:CWORd?', self.__class__.CwordStruct())