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

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


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

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

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