Source code for RsFsw.Implementations.Applications.K10x_Lte.Sense.Lte.Downlink.Demod.EvmCalc

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


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

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

[docs] def set(self, calculation: enums.CalculationLteEvm) -> None: """ ``[SENSe][:LTE]:DL:DEMod:EVMCalc`` \n Snippet: ``driver.applications.k10Xlte.sense.lte.downlink.demod.evmCalc.set(calculation = enums.CalculationLteEvm.OTP)`` \n Selects the EVM calculation method. :param calculation: TGPP 3GPP definition OTP Optimal timing position """ param = Conversions.enum_scalar_to_str(calculation, enums.CalculationLteEvm) self._core.io.write(f'SENSe:LTE:DL:DEMod:EVMCalc {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.CalculationLteEvm: """ ``[SENSe][:LTE]:DL:DEMod:EVMCalc`` \n Snippet: ``value: enums.CalculationLteEvm = driver.applications.k10Xlte.sense.lte.downlink.demod.evmCalc.get()`` \n Selects the EVM calculation method. :return: calculation: TGPP 3GPP definition OTP Optimal timing position """ response = self._core.io.query_str(f'SENSe:LTE:DL:DEMod:EVMCalc?') return Conversions.str_to_scalar_enum(response, enums.CalculationLteEvm)