Source code for RsCMPX_LteMeas.Implementations.Configure.LteMeas.Prach.PfOffset

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PfOffsetCls: """PfOffset commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("pfOffset", core, parent)
[docs] def get_auto(self) -> bool: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:PFOFfset:AUTO \n Snippet: value: bool = driver.configure.lteMeas.prach.pfOffset.get_auto() \n Enables or disables automatic detection of the PRACH frequency offset. To configure the offset manually for disabled automatic detection, see method RsCMPX_LteMeas.Configure.LteMeas.Prach.PfOffset.value. \n :return: prach_freq_auto: No help available """ response = self._core.io.query_str('CONFigure:LTE:MEASurement<Instance>:PRACh:PFOFfset:AUTO?') return Conversions.str_to_bool(response)
[docs] def set_auto(self, prach_freq_auto: bool) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:PFOFfset:AUTO \n Snippet: driver.configure.lteMeas.prach.pfOffset.set_auto(prach_freq_auto = False) \n Enables or disables automatic detection of the PRACH frequency offset. To configure the offset manually for disabled automatic detection, see method RsCMPX_LteMeas.Configure.LteMeas.Prach.PfOffset.value. \n :param prach_freq_auto: No help available """ param = Conversions.bool_to_str(prach_freq_auto) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:PRACh:PFOFfset:AUTO {param}')
[docs] def get_value(self) -> int: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:PFOFfset \n Snippet: value: int = driver.configure.lteMeas.prach.pfOffset.get_value() \n Specifies the PRACH frequency offset. This setting is only relevant if automatic detection is disabled, see method RsCMPX_LteMeas.Configure.LteMeas.Prach.PfOffset.auto. \n :return: prach_freq_offset: No help available """ response = self._core.io.query_str('CONFigure:LTE:MEASurement<Instance>:PRACh:PFOFfset?') return Conversions.str_to_int(response)
[docs] def set_value(self, prach_freq_offset: int) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:PFOFfset \n Snippet: driver.configure.lteMeas.prach.pfOffset.set_value(prach_freq_offset = 1) \n Specifies the PRACH frequency offset. This setting is only relevant if automatic detection is disabled, see method RsCMPX_LteMeas.Configure.LteMeas.Prach.PfOffset.auto. \n :param prach_freq_offset: No help available """ param = Conversions.decimal_value_to_str(prach_freq_offset) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:PRACh:PFOFfset {param}')