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 ReservedCls:
"""Reserved commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("reserved", core, parent)
# noinspection PyTypeChecker
[docs]
class FetchStruct(StructBase):
"""Response structure. Fields: \n
- Reliability: int: 'Reliability indicator'
- Value_Bin: str: No parameter help available
- Value_Dec: int: No parameter help available"""
__meta_args_list = [
ArgStruct.scalar_int('Reliability', 'Reliability'),
ArgStruct.scalar_str('Value_Bin'),
ArgStruct.scalar_int('Value_Dec')]
def __init__(self):
StructBase.__init__(self, self)
self.Reliability: int = None
self.Value_Bin: str = None
self.Value_Dec: int = None
[docs]
def fetch(self, channel=repcap.Channel.Default, userIx=repcap.UserIx.Default) -> FetchStruct:
"""SCPI: FETCh:WLAN:MEASurement<instance>:MEValuation:SINFo:HEB:CHANnel<ch_index>:UFIeld<usr_index>:REServed \n
Snippet: value: FetchStruct = driver.wlanMeas.multiEval.sinfo.heb.channel.ufield.reserved.fetch(channel = repcap.Channel.Default, userIx = repcap.UserIx.Default) \n
Queries the value of Reserved field signaled for the channel and user in HE-SIG-B user-specific field for multi-user MIMO. \n
:param channel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Channel')
:param userIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Ufield')
:return: structure: for return value, see the help for FetchStruct structure arguments."""
channel_cmd_val = self._cmd_group.get_repcap_cmd_value(channel, repcap.Channel)
userIx_cmd_val = self._cmd_group.get_repcap_cmd_value(userIx, repcap.UserIx)
return self._core.io.query_struct(f'FETCh:WLAN:MEASurement<Instance>:MEValuation:SINFo:HEB:CHANnel{channel_cmd_val}:UFIeld{userIx_cmd_val}:REServed?', self.__class__.FetchStruct())