Source code for RsSmw.Implementations.Source.Bb.Wlnn.Fblock.Standard

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


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

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

[docs] def set(self, standard: enums.WlannFbStd, frameBlock=repcap.FrameBlock.Default) -> None: """ ``[SOURce<HW>]:BB:WLNN:FBLock<CH>:STANdard`` \n Snippet: ``driver.source.bb.wlnn.fblock.standard.set(standard = enums.WlannFbStd.USER, frameBlock = repcap.FrameBlock.Default)`` \n Sets the IEEE 802.11 WLAN standard. :param standard: USER | WAG | WBG | WPJ | WN | WAC | WAX | WBE | WBN USER Sets a user-defined standard. WAG | WBG | WPJ | WN Requires R&S SMW-K54. Sets for the standards IEEE 802.11a/g, IEEE 802.11b/g, IEEE 802.11p/j or IEEE 802.11n. WAC Requires R&S SMW-K86. Sets the standard IEEE 802.11ac. WAX Requires R&S SMW-K142. Sets the standard IEEE 802.11ax. WBE Requires R&S SMW-K147. Sets the standard IEEE 802.11be. WBN Requires R&S SMW-K185. Sets the standard IEEE 802.11bn. :param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock') """ param = Conversions.enum_scalar_to_str(standard, enums.WlannFbStd) 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}:STANdard {param}')
# noinspection PyTypeChecker
[docs] def get(self, frameBlock=repcap.FrameBlock.Default) -> enums.WlannFbStd: """ ``[SOURce<HW>]:BB:WLNN:FBLock<CH>:STANdard`` \n Snippet: ``value: enums.WlannFbStd = driver.source.bb.wlnn.fblock.standard.get(frameBlock = repcap.FrameBlock.Default)`` \n Sets the IEEE 802.11 WLAN standard. :param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock') :return: standard: USER | WAG | WBG | WPJ | WN | WAC | WAX | WBE | WBN USER Sets a user-defined standard. WAG | WBG | WPJ | WN Requires R&S SMW-K54. Sets for the standards IEEE 802.11a/g, IEEE 802.11b/g, IEEE 802.11p/j or IEEE 802.11n. WAC Requires R&S SMW-K86. Sets the standard IEEE 802.11ac. WAX Requires R&S SMW-K142. Sets the standard IEEE 802.11ax. WBE Requires R&S SMW-K147. Sets the standard IEEE 802.11be. WBN Requires R&S SMW-K185. Sets the standard IEEE 802.11bn. """ 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}:STANdard?') return Conversions.str_to_scalar_enum(response, enums.WlannFbStd)