Source code for RsFsw.Implementations.Applications.K91_Wlan.Configure.Wlan.Payload.Length.Src

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


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

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

[docs] def set(self, source: enums.PayloadLenSource) -> None: """ ``CONFigure:WLAN:PAYLoad:LENGth:SRC`` \n Snippet: ``driver.applications.k91Wlan.configure.wlan.payload.length.src.set(source = enums.PayloadLenSource.ESTimate)`` \n Defines which payload length is used to determine the minimum or maximum number of required data symbols (IEEE 802.11n, ac) . :param source: ESTimate | HTSignal | LSIGnal | SFIeld ESTimate Uses a length estimated from the input signal HTSignal (IEEE811.02 n) Determines the length of the HT signal (from the signal field) LSIGnal (IEEE811.02 ac) Determines the length of the L signal (from the signal field) """ param = Conversions.enum_scalar_to_str(source, enums.PayloadLenSource) self._core.io.write(f'CONFigure:WLAN:PAYLoad:LENGth:SRC {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.PayloadLenSource: """ ``CONFigure:WLAN:PAYLoad:LENGth:SRC`` \n Snippet: ``value: enums.PayloadLenSource = driver.applications.k91Wlan.configure.wlan.payload.length.src.get()`` \n Defines which payload length is used to determine the minimum or maximum number of required data symbols (IEEE 802.11n, ac) . :return: source: ESTimate | HTSignal | LSIGnal | SFIeld ESTimate Uses a length estimated from the input signal HTSignal (IEEE811.02 n) Determines the length of the HT signal (from the signal field) LSIGnal (IEEE811.02 ac) Determines the length of the L signal (from the signal field) """ response = self._core.io.query_str(f'CONFigure:WLAN:PAYLoad:LENGth:SRC?') return Conversions.str_to_scalar_enum(response, enums.PayloadLenSource)