from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MimoCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mimo", core, parent)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:WLAY:PCONfig:UCONfig:MIMO:STATe`` \n
Snippet: ``value: bool = driver.source.bb.wlay.pconfig.uconfig.mimo.get_state()`` \n
Queries if the current user uses multi-user (MU) MIMO. All MU-MIMO users share one resource unit (RU) using different
space time streams.
:return: mimo_state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAY:PCONfig:UCONfig:MIMO:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, mimo_state: bool) -> None:
"""
``[SOURce<HW>]:BB:WLAY:PCONfig:UCONfig:MIMO:STATe`` \n
Snippet: ``driver.source.bb.wlay.pconfig.uconfig.mimo.set_state(mimo_state = False)`` \n
Queries if the current user uses multi-user (MU) MIMO. All MU-MIMO users share one resource unit (RU) using different
space time streams.
:param mimo_state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(mimo_state)
self._core.io.write(f'SOURce<HwInstance>:BB:WLAY:PCONfig:UCONfig:MIMO:STATe {param}')