Source code for RsSmw.Implementations.Source.Bb.Gsm.Frame.Slot.VoJitter

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class VoJitterCls: """VoJitter commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("voJitter", core, parent)
[docs] def set(self, state: bool, frameIx=repcap.FrameIx.Default, slotNull=repcap.SlotNull.Default) -> None: """SCPI: [SOURce<HW>]:BB:GSM:[FRAMe<DI>]:SLOT<ST0>:VOJitter \n Snippet: driver.source.bb.gsm.frame.slot.voJitter.set(state = False, frameIx = repcap.FrameIx.Default, slotNull = repcap.SlotNull.Default) \n Enables/disables the simulation of a timing jitter for GMSK bursts. \n :param state: 1| ON| 0| OFF :param frameIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Frame') :param slotNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Slot') """ param = Conversions.bool_to_str(state) frameIx_cmd_val = self._cmd_group.get_repcap_cmd_value(frameIx, repcap.FrameIx) slotNull_cmd_val = self._cmd_group.get_repcap_cmd_value(slotNull, repcap.SlotNull) self._core.io.write(f'SOURce<HwInstance>:BB:GSM:FRAMe{frameIx_cmd_val}:SLOT{slotNull_cmd_val}:VOJitter {param}')
[docs] def get(self, frameIx=repcap.FrameIx.Default, slotNull=repcap.SlotNull.Default) -> bool: """SCPI: [SOURce<HW>]:BB:GSM:[FRAMe<DI>]:SLOT<ST0>:VOJitter \n Snippet: value: bool = driver.source.bb.gsm.frame.slot.voJitter.get(frameIx = repcap.FrameIx.Default, slotNull = repcap.SlotNull.Default) \n Enables/disables the simulation of a timing jitter for GMSK bursts. \n :param frameIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Frame') :param slotNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Slot') :return: state: 1| ON| 0| OFF""" frameIx_cmd_val = self._cmd_group.get_repcap_cmd_value(frameIx, repcap.FrameIx) slotNull_cmd_val = self._cmd_group.get_repcap_cmd_value(slotNull, repcap.SlotNull) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:GSM:FRAMe{frameIx_cmd_val}:SLOT{slotNull_cmd_val}:VOJitter?') return Conversions.str_to_bool(response)