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

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


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

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

[docs] def set(self, mode: enums.FreqOffsetMode) -> None: """ ``CONFigure[:NR5G]:OMODe`` \n Snippet: ``driver.applications.k14Xnr5G.configure.nr5G.omode.set(mode = enums.FreqOffsetMode.ARBitrary)`` \n Selects the frequency offset mode for component carriers in a multicarrier setup. :param mode: ARBitrary Distance between component carriers is arbitrary. You can define the frequency offsets with method ``RsFsw.applications.k10Xlte.sense.frequency.center.cc.offset.set()`` . EQUidistant Component carriers have the same distance between each other. You can define the spacing between carriers with method ``RsFsw.applications.k14Xnr5G.configure.nr5G.cspacing.set()`` . """ param = Conversions.enum_scalar_to_str(mode, enums.FreqOffsetMode) self._core.io.write(f'CONFigure:NR5G:OMODe {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.FreqOffsetMode: """ ``CONFigure[:NR5G]:OMODe`` \n Snippet: ``value: enums.FreqOffsetMode = driver.applications.k14Xnr5G.configure.nr5G.omode.get()`` \n Selects the frequency offset mode for component carriers in a multicarrier setup. :return: mode: ARBitrary Distance between component carriers is arbitrary. You can define the frequency offsets with method ``RsFsw.applications.k10Xlte.sense.frequency.center.cc.offset.set()`` . EQUidistant Component carriers have the same distance between each other. You can define the spacing between carriers with method ``RsFsw.applications.k14Xnr5G.configure.nr5G.cspacing.set()`` . """ response = self._core.io.query_str(f'CONFigure:NR5G:OMODe?') return Conversions.str_to_scalar_enum(response, enums.FreqOffsetMode)