from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal.StructBase import StructBase
from .........Internal.ArgStruct import ArgStruct
from ......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TddConfCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("tddConf", core, parent)
# noinspection PyTypeChecker
[docs]
class GetStruct(StructBase):
"""
Response structure. Fields: \n
- 1 Pattern: str: 12 bits
- 2 Bitcount: int: integer Range: 12 to 12
"""
__meta_args_list = [
ArgStruct.scalar_raw_str('Pattern'),
ArgStruct.scalar_int('Bitcount')]
def __init__(self):
StructBase.__init__(self, self)
self.Pattern: str = None
self.Bitcount: int = None
[docs]
def get(self, cellNull=repcap.CellNull.Default, indexNull=repcap.IndexNull.Default) -> GetStruct:
"""
``[SOURce<HW>]:BB:NR5G:NODE:CELL<CC(CH0)>:SSPBch<SSB(ST0)>:SL:TDDConf`` \n
Snippet: ``value: GetStruct = driver.source.bb.nr5G.node.cell.sspbch.sl.tddConf.get(cellNull = repcap.CellNull.Default, indexNull = repcap.IndexNull.Default)`` \n
Defines the bit pattern for the PSBCH TDD configuration.
:param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell')
:param indexNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Sspbch')
:return: structure: for return value, see the help for GetStruct structure arguments.
"""
cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull)
indexNull_cmd_val = self._cmd_group.get_repcap_cmd_value(indexNull, repcap.IndexNull)
return self._core.io.query_struct(f'SOURce<HwInstance>:BB:NR5G:NODE:CELL{cellNull_cmd_val}:SSPBch{indexNull_cmd_val}:SL:TDDConf?', self.__class__.GetStruct())