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
[docs]class CaAddressCls:
"""CaAddress commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("caAddress", core, parent)
# noinspection PyTypeChecker
[docs] class GetStruct(StructBase):
"""Response structure. Fields: \n
- Access_Address: str: No parameter help available
- Bitcount: int: No parameter help available"""
__meta_args_list = [
ArgStruct.scalar_raw_str('Access_Address'),
ArgStruct.scalar_int('Bitcount')]
def __init__(self):
StructBase.__init__(self, self)
self.Access_Address: str = None
self.Bitcount: int = None
[docs] def get(self, channelNull=repcap.ChannelNull.Default, stepNull=repcap.StepNull.Default) -> GetStruct:
"""SCPI: [SOURce<HW>]:BB:BTOoth:CS:[SEVent<CH0>]:[STEP<ST0>]:CAADdress \n
Snippet: value: GetStruct = driver.source.bb.btooth.cs.sevent.step.caAddress.get(channelNull = repcap.ChannelNull.Default, stepNull = repcap.StepNull.Default) \n
No command help available \n
:param channelNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Sevent')
:param stepNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Step')
:return: structure: for return value, see the help for GetStruct structure arguments."""
channelNull_cmd_val = self._cmd_group.get_repcap_cmd_value(channelNull, repcap.ChannelNull)
stepNull_cmd_val = self._cmd_group.get_repcap_cmd_value(stepNull, repcap.StepNull)
return self._core.io.query_struct(f'SOURce<HwInstance>:BB:BTOoth:CS:SEVent{channelNull_cmd_val}:STEP{stepNull_cmd_val}:CAADdress?', self.__class__.GetStruct())