Source code for RsSmbv.Implementations.Source.Bb.Wlnn.Fblock.Bmcs

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class BmcsCls: """Bmcs commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("bmcs", core, parent)
[docs] def set(self, sig_bmcs: enums.WlannFbMcs, frameBlock=repcap.FrameBlock.Default) -> None: """SCPI: [SOURce<HW>]:BB:WLNN:FBLock<CH>:BMCS \n Snippet: driver.source.bb.wlnn.fblock.bmcs.set(sig_bmcs = enums.WlannFbMcs.MCS0, frameBlock = repcap.FrameBlock.Default) \n Sets the modulation and coding scheme (MCS) for the signal B field. \n :param sig_bmcs: MCS0| MCS1| MCS2| MCS3| MCS4| MCS5| MCS6| MCS7| MCS8| MCS9| MCS10| MCS11| MCS12| MCS13| MCS14| MCS15| MCS16| MCS17| MCS18| MCS19| MCS20| MCS21| MCS22| MCS23| MCS24| MCS25| MCS26| MCS27| MCS28| MCS29| MCS30| MCS31| MCS32| MCS33| MCS34| MCS35| MCS36| MCS37| MCS38| MCS39| MCS40| MCS41| MCS42| MCS43| MCS44| MCS45| MCS46| MCS47| MCS48| MCS49| MCS50| MCS51| MCS52| MCS53| MCS54| MCS55| MCS56| MCS57| MCS58| MCS59| MCS60| MCS61| MCS62| MCS63| MCS64| MCS65| MCS66| MCS67| MCS68| MCS69| MCS70| MCS71| MCS72| MCS73| MCS74| MCS75| MCS76 :param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock') """ param = Conversions.enum_scalar_to_str(sig_bmcs, enums.WlannFbMcs) 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}:BMCS {param}')
# noinspection PyTypeChecker
[docs] def get(self, frameBlock=repcap.FrameBlock.Default) -> enums.WlannFbMcs: """SCPI: [SOURce<HW>]:BB:WLNN:FBLock<CH>:BMCS \n Snippet: value: enums.WlannFbMcs = driver.source.bb.wlnn.fblock.bmcs.get(frameBlock = repcap.FrameBlock.Default) \n Sets the modulation and coding scheme (MCS) for the signal B field. \n :param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock') :return: sig_bmcs: MCS0| MCS1| MCS2| MCS3| MCS4| MCS5| MCS6| MCS7| MCS8| MCS9| MCS10| MCS11| MCS12| MCS13| MCS14| MCS15| MCS16| MCS17| MCS18| MCS19| MCS20| MCS21| MCS22| MCS23| MCS24| MCS25| MCS26| MCS27| MCS28| MCS29| MCS30| MCS31| MCS32| MCS33| MCS34| MCS35| MCS36| MCS37| MCS38| MCS39| MCS40| MCS41| MCS42| MCS43| MCS44| MCS45| MCS46| MCS47| MCS48| MCS49| MCS50| MCS51| MCS52| MCS53| MCS54| MCS55| MCS56| MCS57| MCS58| MCS59| MCS60| MCS61| MCS62| MCS63| MCS64| MCS65| MCS66| MCS67| MCS68| MCS69| MCS70| MCS71| MCS72| MCS73| MCS74| MCS75| MCS76""" 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}:BMCS?') return Conversions.str_to_scalar_enum(response, enums.WlannFbMcs)