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

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


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

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

[docs] def set(self, bandwidth: enums.BandwidthChRaster) -> None: """ ``CONFigure[:NR5G]:CRASter`` \n Snippet: ``driver.applications.k14Xnr5G.configure.nr5G.craster.set(bandwidth = enums.BandwidthChRaster.C100)`` \n Selects the channel raster of a component carrier. Prerequisites for this command \n - Select an operating band that supports different channel raster (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.oband.set()`` ) . For all other operating bands, the command works as a query only. :param bandwidth: C15 15 kHz channel rater C15 100 kHz channel rater """ param = Conversions.enum_scalar_to_str(bandwidth, enums.BandwidthChRaster) self._core.io.write(f'CONFigure:NR5G:CRASter {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.BandwidthChRaster: """ ``CONFigure[:NR5G]:CRASter`` \n Snippet: ``value: enums.BandwidthChRaster = driver.applications.k14Xnr5G.configure.nr5G.craster.get()`` \n Selects the channel raster of a component carrier. Prerequisites for this command \n - Select an operating band that supports different channel raster (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.oband.set()`` ) . For all other operating bands, the command works as a query only. :return: bandwidth: C15 15 kHz channel rater C15 100 kHz channel rater """ response = self._core.io.query_str(f'CONFigure:NR5G:CRASter?') return Conversions.str_to_scalar_enum(response, enums.BandwidthChRaster)