Source code for RsSmw.Implementations.Source.Bb.Wlnn.Fblock.Mac.VhtControl.RdgMore

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 RdgMoreCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("rdgMore", core, parent)

[docs] def set(self, vht_rdg_more: str, frameBlock=repcap.FrameBlock.Default) -> None: """ ``[SOURce<HW>]:BB:WLNN:FBLock<CH>:MAC:VHTControl:RDGMore`` \n Snippet: ``driver.source.bb.wlnn.fblock.mac.vhtControl.rdgMore.set(vht_rdg_more = rawAbc, frameBlock = repcap.FrameBlock.Default)`` \n The command issues the reverse direction grant. When transmitted by an initiator or a responder, this field is interpreted differently. Transmitted by Initiator 0 = No reverse grant. 1 = A reverse grant is present, as defined by the Duration/ID field. Transmitted by Responder 0 = The PPDU carrying the MPDU is the last transmission by the responder. 1 = The PPDU carrying the frame is followed by another PPDU. :param vht_rdg_more: integer :param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock') """ param = Conversions.value_to_str(vht_rdg_more) 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:VHTControl:RDGMore {param}')
[docs] def get(self, frameBlock=repcap.FrameBlock.Default) -> str: """ ``[SOURce<HW>]:BB:WLNN:FBLock<CH>:MAC:VHTControl:RDGMore`` \n Snippet: ``value: str = driver.source.bb.wlnn.fblock.mac.vhtControl.rdgMore.get(frameBlock = repcap.FrameBlock.Default)`` \n The command issues the reverse direction grant. When transmitted by an initiator or a responder, this field is interpreted differently. Transmitted by Initiator 0 = No reverse grant. 1 = A reverse grant is present, as defined by the Duration/ID field. Transmitted by Responder 0 = The PPDU carrying the MPDU is the last transmission by the responder. 1 = The PPDU carrying the frame is followed by another PPDU. :param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock') :return: vht_rdg_more: integer """ 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:VHTControl:RDGMore?') return trim_str_response(response)