Source code for RsSmw.Implementations.Source.Bb.Gsm.Mframe.Slot.BurstIndex

from typing import List

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


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

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

[docs] def set(self, burst_index: List[int], slotNull=repcap.SlotNull.Default) -> None: """ ``[SOURce<HW>]:BB:GSM:MFRame:SLOT<ST0>:BURStindex`` \n Snippet: ``driver.source.bb.gsm.mframe.slot.burstIndex.set(burst_index = [1, 2, 3], slotNull = repcap.SlotNull.Default)`` \n No help available :param slotNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Slot') """ param = Conversions.list_to_csv_str(burst_index) slotNull_cmd_val = self._cmd_group.get_repcap_cmd_value(slotNull, repcap.SlotNull) self._core.io.write(f'SOURce<HwInstance>:BB:GSM:MFRame:SLOT{slotNull_cmd_val}:BURStindex {param}')
[docs] def get(self, slotNull=repcap.SlotNull.Default) -> List[int]: """ ``[SOURce<HW>]:BB:GSM:MFRame:SLOT<ST0>:BURStindex`` \n Snippet: ``value: List[int] = driver.source.bb.gsm.mframe.slot.burstIndex.get(slotNull = repcap.SlotNull.Default)`` \n No help available :param slotNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Slot') """ slotNull_cmd_val = self._cmd_group.get_repcap_cmd_value(slotNull, repcap.SlotNull) response = self._core.io.query_bin_or_ascii_int_list(f'SOURce<HwInstance>:BB:GSM:MFRame:SLOT{slotNull_cmd_val}:BURStindex?') return response