Source code for RsSmw.Implementations.Source.Bb.W3Gpp.Ts25141.Awgn.RpDetection

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


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

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

	# noinspection PyTypeChecker
[docs] def get_rate(self) -> enums.Ts25141ReqPd: """ ``[SOURce]:BB:W3GPp:TS25141:AWGN:RPDetection:RATE`` \n Snippet: ``value: enums.Ts25141ReqPd = driver.source.bb.w3Gpp.ts25141.awgn.rpDetection.get_rate()`` \n Sets the required probability of detection of preamble (Pd) . The selection determines the ratio Eb/N0. :return: rate: PD099 | PD0999 """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:AWGN:RPDetection:RATE?') return Conversions.str_to_scalar_enum(response, enums.Ts25141ReqPd)
[docs] def set_rate(self, rate: enums.Ts25141ReqPd) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:AWGN:RPDetection:RATE`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.awgn.rpDetection.set_rate(rate = enums.Ts25141ReqPd.PD099)`` \n Sets the required probability of detection of preamble (Pd) . The selection determines the ratio Eb/N0. :param rate: PD099 | PD0999 """ param = Conversions.enum_scalar_to_str(rate, enums.Ts25141ReqPd) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:AWGN:RPDetection:RATE {param}')