Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Nr5G.Demod.Cmethod

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


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

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

[docs] def set(self, state: enums.EvmCalcState) -> None: """ ``[SENSe]:NR5G:DEMod:CMEThod`` \n Snippet: ``driver.applications.k14Xnr5G.sense.nr5G.demod.cmethod.set(state = enums.EvmCalcState.AOTP)`` \n Selects the EVM calculation method. :param state: HPOS EVM at high timing position LPOS EVM at low timing position OTP EVM at optimal timing position TGPP EVM according to 3GPP definition """ param = Conversions.enum_scalar_to_str(state, enums.EvmCalcState) self._core.io.write(f'SENSe:NR5G:DEMod:CMEThod {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.EvmCalcState: """ ``[SENSe]:NR5G:DEMod:CMEThod`` \n Snippet: ``value: enums.EvmCalcState = driver.applications.k14Xnr5G.sense.nr5G.demod.cmethod.get()`` \n Selects the EVM calculation method. :return: state: HPOS EVM at high timing position LPOS EVM at low timing position OTP EVM at optimal timing position TGPP EVM according to 3GPP definition """ response = self._core.io.query_str(f'SENSe:NR5G:DEMod:CMEThod?') return Conversions.str_to_scalar_enum(response, enums.EvmCalcState)