from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........Internal.Utilities import trim_str_response
from ........ import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HtControlCls:
"""
| Commands in total: 13
| Subgroups: 11
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("htControl", core, parent)
@property
def acConstraint(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_acConstraint'):
from .AcConstraint import AcConstraintCls
self._acConstraint = AcConstraintCls(self._core, self._cmd_group)
return self._acConstraint
@property
def calibration(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_calibration'):
from .Calibration import CalibrationCls
self._calibration = CalibrationCls(self._core, self._cmd_group)
return self._calibration
@property
def csiSteering(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_csiSteering'):
from .CsiSteering import CsiSteeringCls
self._csiSteering = CsiSteeringCls(self._core, self._cmd_group)
return self._csiSteering
@property
def frequest(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_frequest'):
from .Frequest import FrequestCls
self._frequest = FrequestCls(self._core, self._cmd_group)
return self._frequest
@property
def hvIndicator(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_hvIndicator'):
from .HvIndicator import HvIndicatorCls
self._hvIndicator = HvIndicatorCls(self._core, self._cmd_group)
return self._hvIndicator
@property
def laControl(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_laControl'):
from .LaControl import LaControlCls
self._laControl = LaControlCls(self._core, self._cmd_group)
return self._laControl
@property
def ndp(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_ndp'):
from .Ndp import NdpCls
self._ndp = NdpCls(self._core, self._cmd_group)
return self._ndp
@property
def rdgMore(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_rdgMore'):
from .RdgMore import RdgMoreCls
self._rdgMore = RdgMoreCls(self._core, self._cmd_group)
return self._rdgMore
@property
def reserved(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_reserved'):
from .Reserved import ReservedCls
self._reserved = ReservedCls(self._core, self._cmd_group)
return self._reserved
@property
def sreserved(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_sreserved'):
from .Sreserved import SreservedCls
self._sreserved = SreservedCls(self._core, self._cmd_group)
return self._sreserved
@property
def zlf(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_zlf'):
from .Zlf import ZlfCls
self._zlf = ZlfCls(self._core, self._cmd_group)
return self._zlf
[docs]
def set(self, ht_control: str, frameBlock=repcap.FrameBlock.Default) -> None:
"""
``[SOURce<HW>]:BB:WLNN:FBLock<CH>:MAC:HTControl`` \n
Snippet: ``driver.source.bb.wlnn.fblock.mac.htControl.set(ht_control = rawAbc, frameBlock = repcap.FrameBlock.Default)`` \n
Sets the value for the HT control field.
:param ht_control: integer Range: #H00000000,32 to #HFFFFFFFF,32
:param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock')
"""
param = Conversions.value_to_str(ht_control)
frameBlock_cmd_val = self._cmd_group.get_repcap_cmd_value(frameBlock, repcap.FrameBlock)
self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:FBLock{frameBlock_cmd_val}:MAC:HTControl {param}')
[docs]
def get(self, frameBlock=repcap.FrameBlock.Default) -> str:
"""
``[SOURce<HW>]:BB:WLNN:FBLock<CH>:MAC:HTControl`` \n
Snippet: ``value: str = driver.source.bb.wlnn.fblock.mac.htControl.get(frameBlock = repcap.FrameBlock.Default)`` \n
Sets the value for the HT control field.
:param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock')
:return: ht_control: integer Range: #H00000000,32 to #HFFFFFFFF,32
"""
frameBlock_cmd_val = self._cmd_group.get_repcap_cmd_value(frameBlock, repcap.FrameBlock)
response = self._core.io.query_str(f'SOURce<HwInstance>:BB:WLNN:FBLock{frameBlock_cmd_val}:MAC:HTControl?')
return trim_str_response(response)
def clone(self) -> 'HtControlCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = HtControlCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group