Source code for RsFsw.Implementations.Applications.K149_Uwb.Sense.Demod.PhrRate

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


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

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

[docs] def set(self, phr_rate: enums.PhrRate) -> None: """ ``[SENSe]:DEMod:PHRRate`` \n Snippet: ``driver.applications.k149Uwb.sense.demod.phrRate.set(phr_rate = enums.PhrRate.BMHP)`` \n Selects PHY Mode/Rate modes. :param phr_rate: BMLP | BMHP | HMLR | HMHR """ param = Conversions.enum_scalar_to_str(phr_rate, enums.PhrRate) self._core.io.write(f'SENSe:DEMod:PHRRate {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.PhrRate: """ ``[SENSe]:DEMod:PHRRate`` \n Snippet: ``value: enums.PhrRate = driver.applications.k149Uwb.sense.demod.phrRate.get()`` \n Selects PHY Mode/Rate modes. :return: phr_rate: BMLP | BMHP | HMLR | HMHR """ response = self._core.io.query_str(f'SENSe:DEMod:PHRRate?') return Conversions.str_to_scalar_enum(response, enums.PhrRate)