Source code for RsSmw.Implementations.Source.Bb.Huwb.Phr

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class PhrCls: """Phr commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" 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: """SCPI: [SOURce<HW>]:BB:HUWB:PHR:DRM \n Snippet: value: enums.HrpUwbPhrdAtaRateMode = driver.source.bb.huwb.phr.get_drm() \n Sets the data rate mode of the physical header. \n :return: data_rate_mode: BMLP| BMHP| HMLR| HMHR """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:PHR:DRM?') return Conversions.str_to_scalar_enum(response, enums.HrpUwbPhrdAtaRateMode)
[docs] def set_drm(self, data_rate_mode: enums.HrpUwbPhrdAtaRateMode) -> None: """SCPI: [SOURce<HW>]:BB:HUWB:PHR:DRM \n Snippet: driver.source.bb.huwb.phr.set_drm(data_rate_mode = enums.HrpUwbPhrdAtaRateMode.BMHP) \n Sets the data rate mode of the physical header. \n :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:HUWB:PHR:DRM {param}')