Source code for RsFsw.Implementations.Applications.K10x_Lte.Sense.Lte.Uplink.Demod.Mode

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


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

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

[docs] def set(self, mode: enums.AnalysisModeUl) -> None: """ ``[SENSe][:LTE]:UL:DEMod:MODE`` \n Snippet: ``driver.applications.k10Xlte.sense.lte.uplink.demod.mode.set(mode = enums.AnalysisModeUl.NPRach)`` \n Selects the uplink analysis mode. :param mode: PUSCh Analyzes the PUSCH and PUCCH. PRACh Analyzes the PRACH. """ param = Conversions.enum_scalar_to_str(mode, enums.AnalysisModeUl) self._core.io.write(f'SENSe:LTE:UL:DEMod:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.AnalysisModeUl: """ ``[SENSe][:LTE]:UL:DEMod:MODE`` \n Snippet: ``value: enums.AnalysisModeUl = driver.applications.k10Xlte.sense.lte.uplink.demod.mode.get()`` \n Selects the uplink analysis mode. :return: mode: PUSCh Analyzes the PUSCH and PUCCH. PRACh Analyzes the PRACH. """ response = self._core.io.query_str(f'SENSe:LTE:UL:DEMod:MODE?') return Conversions.str_to_scalar_enum(response, enums.AnalysisModeUl)