Source code for RsFsw.Implementations.Applications.K91_Wlan.Unit.Evm

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


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

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

[docs] def set(self, unit: enums.UnitMode) -> None: """ ``UNIT:EVM`` \n Snippet: ``driver.applications.k91Wlan.unit.evm.set(unit = enums.UnitMode.DB)`` \n Selects the EVM unit. :param unit: DB EVM results returned in dB PCT EVM results returned in % """ param = Conversions.enum_scalar_to_str(unit, enums.UnitMode) self._core.io.write(f'UNIT:EVM {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.UnitMode: """ ``UNIT:EVM`` \n Snippet: ``value: enums.UnitMode = driver.applications.k91Wlan.unit.evm.get()`` \n Selects the EVM unit. :return: unit: DB EVM results returned in dB PCT EVM results returned in % """ response = self._core.io.query_str(f'UNIT:EVM?') return Conversions.str_to_scalar_enum(response, enums.UnitMode)