Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Nr5G.Rsummary.Pmode

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


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

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

[docs] def set(self, result: enums.ResultNr5G) -> None: """ ``[SENSe]:NR5G:RSUMmary:PMODe`` \n Snippet: ``driver.applications.k14Xnr5G.sense.nr5G.rsummary.pmode.set(result = enums.ResultNr5G.AASL)`` \n Selects the power averaging mode. :param result: AASL Power avergaing over all symbols in a slot. AASY Power avergaing over all used symbols in a slot. """ param = Conversions.enum_scalar_to_str(result, enums.ResultNr5G) self._core.io.write(f'SENSe:NR5G:RSUMmary:PMODe {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.ResultNr5G: """ ``[SENSe]:NR5G:RSUMmary:PMODe`` \n Snippet: ``value: enums.ResultNr5G = driver.applications.k14Xnr5G.sense.nr5G.rsummary.pmode.get()`` \n Selects the power averaging mode. :return: result: AASL Power avergaing over all symbols in a slot. AASY Power avergaing over all used symbols in a slot. """ response = self._core.io.query_str(f'SENSe:NR5G:RSUMmary:PMODe?') return Conversions.str_to_scalar_enum(response, enums.ResultNr5G)