Source code for RsSmw.Implementations.Source.Bb.LrWpan.Oqpsk.Phr

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


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

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

	# noinspection PyTypeChecker
[docs] def get_drm(self) -> enums.HrpUwbPhrdAtaRateMode: """ ``[SOURce<HW>]:BB:[LRWPan]:OQPSk:PHR:DRM`` \n Snippet: ``value: enums.HrpUwbPhrdAtaRateMode = driver.source.bb.lrWpan.oqpsk.phr.get_drm()`` \n Requires [:SOURce<hw>]:BB:LRWPan | HUWB:STD BPRF | HPRF. Sets the data rate mode of the physical header. :return: data_rate_mode: BMLP | BMHP | HMLR | HMHR """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:OQPSk:PHR:DRM?') return Conversions.str_to_scalar_enum(response, enums.HrpUwbPhrdAtaRateMode)
[docs] def set_drm(self, data_rate_mode: enums.HrpUwbPhrdAtaRateMode) -> None: """ ``[SOURce<HW>]:BB:[LRWPan]:OQPSk:PHR:DRM`` \n Snippet: ``driver.source.bb.lrWpan.oqpsk.phr.set_drm(data_rate_mode = enums.HrpUwbPhrdAtaRateMode.BMHP)`` \n Requires [:SOURce<hw>]:BB:LRWPan | HUWB:STD BPRF | HPRF. Sets the data rate mode of the physical header. :param data_rate_mode: BMLP | BMHP | HMLR | HMHR """ param = Conversions.enum_scalar_to_str(data_rate_mode, enums.HrpUwbPhrdAtaRateMode) self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:OQPSk:PHR:DRM {param}')