Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Nr5G.Demod.Crdata

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


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

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

[docs] def set(self, state: enums.CrDataState) -> None: """ ``[SENSe]:NR5G:DEMod:CRData`` \n Snippet: ``driver.applications.k14Xnr5G.sense.nr5G.demod.crdata.set(state = enums.CrDataState.ALL0)`` \n Selects the CORESET reference data. :param state: AUTO Automatic detection of reference values. ALL0 CORESET consists of 0's only. PASLots CORESET based on NR-TM PN23 (pseudo random sequence 23) with all PDCCH having the same sequence. If an ORAN test case is selected (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.oran.tcase.set()`` , this parameter selects the ORAN PN23 sequence for all PDCCH. PN23 CORESET based on NR-TM PN23 (pseudo random sequence 23) . """ param = Conversions.enum_scalar_to_str(state, enums.CrDataState) self._core.io.write(f'SENSe:NR5G:DEMod:CRData {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.CrDataState: """ ``[SENSe]:NR5G:DEMod:CRData`` \n Snippet: ``value: enums.CrDataState = driver.applications.k14Xnr5G.sense.nr5G.demod.crdata.get()`` \n Selects the CORESET reference data. """ response = self._core.io.query_str(f'SENSe:NR5G:DEMod:CRData?') return Conversions.str_to_scalar_enum(response, enums.CrDataState)