Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Configure.Nr5G.Orel

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


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

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

[docs] def set(self, mode: enums.RefPointMode) -> None: """ ``CONFigure[:NR5G]:OREL`` \n Snippet: ``driver.applications.k14Xnr5G.configure.nr5G.orel.set(mode = enums.RefPointMode.CC1)`` \n Selects the reference point for frequency offsets of component carriers in a multicarrier setup. :param mode: CC1 Reference point is the center frequency of first component carrier. GMCFreq Reference point the global multicarrier frequency. """ param = Conversions.enum_scalar_to_str(mode, enums.RefPointMode) self._core.io.write(f'CONFigure:NR5G:OREL {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.RefPointMode: """ ``CONFigure[:NR5G]:OREL`` \n Snippet: ``value: enums.RefPointMode = driver.applications.k14Xnr5G.configure.nr5G.orel.get()`` \n Selects the reference point for frequency offsets of component carriers in a multicarrier setup. """ response = self._core.io.query_str(f'CONFigure:NR5G:OREL?') return Conversions.str_to_scalar_enum(response, enums.RefPointMode)