Source code for RsFsw.Implementations.Applications.K91_Wlan.Configure.Wlan.RuConfig.HePpdu

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HePpduCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, ru_config_ppdu: enums.RuConfigPpdu) -> None: """ ``CONFigure:WLAN:RUConfig:HEPPdu`` \n Snippet: ``driver.applications.k91Wlan.configure.wlan.ruConfig.hePpdu.set(ru_config_ppdu = enums.RuConfigPpdu.ELR)`` \n Defines the format of the HE PPDU. This format determines which other PPDU settings are available. :param ru_config_ppdu: SU | MU | TRIG | ESU | ELR SU High-efficiency single user PPDU for uplink and downlink MU High-efficiency multi-user PPDU for downlink to multiple users at the same time TRIG High-efficiency trigger-based PPDU for uplink from multiple users at the same time ESU High-efficiency single-user PPDU for an extended range """ param = Conversions.enum_scalar_to_str(ru_config_ppdu, enums.RuConfigPpdu) self._core.io.write(f'CONFigure:WLAN:RUConfig:HEPPdu {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.RuConfigPpdu: """ ``CONFigure:WLAN:RUConfig:HEPPdu`` \n Snippet: ``value: enums.RuConfigPpdu = driver.applications.k91Wlan.configure.wlan.ruConfig.hePpdu.get()`` \n Defines the format of the HE PPDU. This format determines which other PPDU settings are available. :return: ru_config_ppdu: SU | MU | TRIG | ESU | ELR SU High-efficiency single user PPDU for uplink and downlink MU High-efficiency multi-user PPDU for downlink to multiple users at the same time TRIG High-efficiency trigger-based PPDU for uplink from multiple users at the same time ESU High-efficiency single-user PPDU for an extended range """ response = self._core.io.query_str(f'CONFigure:WLAN:RUConfig:HEPPdu?') return Conversions.str_to_scalar_enum(response, enums.RuConfigPpdu)