Source code for RsFsw.Implementations.Applications.K10x_Lte.Fetch.Cc.Plc.Plid

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


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

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

[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default) -> float: """ ``FETCh[:CC<cc>]:PLC:PLID`` \n Snippet: ``value: float = driver.applications.k10Xlte.fetch.cc.plc.plid.get(carrierComponent = repcap.CarrierComponent.Default)`` \n Queries the cell identity that has been detected. :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :return: identity: The command returns -1 if no valid result has been detected yet. Range: 0 to 2 """ carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) response = self._core.io.query_str(f'FETCh:CC{carrierComponent_cmd_val}:PLC:PLID?') return Conversions.str_to_float(response)