Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Configure.Nr5G.Uplink.Cc.Prach.Lra

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


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

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

[docs] def set(self, value: enums.LraValue, carrierComponent=repcap.CarrierComponent.Default) -> None: """ ``CONFigure[:NR5G]:UL[:CC<cc>]:PRACh:LRA`` \n Snippet: ``driver.applications.k14Xnr5G.configure.nr5G.uplink.cc.prach.lra.set(value = enums.LraValue.L1151, carrierComponent = repcap.CarrierComponent.Default)`` \n Selects the PRACH parameter LRA. :param value: L139 | L571 | L839 | L1151 The availability of the parameters depends on the PRACH format and subcarrier spacing. -method ``RsFsw.applications.k14Xnr5G.configure.nr5G.uplink.cc.prach.formatPy.set()`` -method ``RsFsw.applications.k14Xnr5G.configure.nr5G.uplink.cc.prach.scs.set()`` :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') """ param = Conversions.enum_scalar_to_str(value, enums.LraValue) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) self._core.io.write(f'CONFigure:NR5G:UL:CC{carrierComponent_cmd_val}:PRACh:LRA {param}')
# noinspection PyTypeChecker
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default) -> enums.LraValue: """ ``CONFigure[:NR5G]:UL[:CC<cc>]:PRACh:LRA`` \n Snippet: ``value: enums.LraValue = driver.applications.k14Xnr5G.configure.nr5G.uplink.cc.prach.lra.get(carrierComponent = repcap.CarrierComponent.Default)`` \n Selects the PRACH parameter LRA. :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :return: value: L139 | L571 | L839 | L1151 The availability of the parameters depends on the PRACH format and subcarrier spacing. -method ``RsFsw.applications.k14Xnr5G.configure.nr5G.uplink.cc.prach.formatPy.set()`` -method ``RsFsw.applications.k14Xnr5G.configure.nr5G.uplink.cc.prach.scs.set()`` """ carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) response = self._core.io.query_str(f'CONFigure:NR5G:UL:CC{carrierComponent_cmd_val}:PRACh:LRA?') return Conversions.str_to_scalar_enum(response, enums.LraValue)