Source code for rsrtx.Implementations.Bus.Dphy.DspData

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


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

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

[docs] def set(self, diplay_dat_vect: bool, bus=repcap.Bus.Default) -> None: """ ``BUS<*>:DPHY:DSPData`` \n Snippet: ``driver.bus.dphy.dspData.set(diplay_dat_vect = False, bus = repcap.Bus.Default)`` \n Enables the display of the data vector, which means that the whole frame will be decoded. When the display vector is disabled only the packet header will be decoded and not the actual data payload of the frame. This will speed up the decoding. :param diplay_dat_vect: OFF | ON :param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus') """ param = Conversions.bool_to_str(diplay_dat_vect) bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus) self._core.io.write(f'BUS{bus_cmd_val}:DPHY:DSPData {param}')
[docs] def get(self, bus=repcap.Bus.Default) -> bool: """ ``BUS<*>:DPHY:DSPData`` \n Snippet: ``value: bool = driver.bus.dphy.dspData.get(bus = repcap.Bus.Default)`` \n Enables the display of the data vector, which means that the whole frame will be decoded. When the display vector is disabled only the packet header will be decoded and not the actual data payload of the frame. This will speed up the decoding. :param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus') """ bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus) response = self._core.io.query_str(f'BUS{bus_cmd_val}:DPHY:DSPData?') return Conversions.str_to_bool(response)