Source code for RsSmbv.Implementations.Source.Bb.Btooth.Pconfiguration.Data

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DataCls:
	"""
	| Commands in total: 5
	| Subgroups: 2
	| Direct child commands: 3
	"""

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

	@property
	def dpattern(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_dpattern'):
			from .Dpattern import DpatternCls
			self._dpattern = DpatternCls(self._core, self._cmd_group)
		return self._dpattern

	@property
	def vdPattern(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_vdPattern'):
			from .VdPattern import VdPatternCls
			self._vdPattern = VdPatternCls(self._core, self._cmd_group)
		return self._vdPattern

[docs] def get_dselection(self) -> str: """ ``[SOURce<HW>]:BB:BTOoth:PCONfiguration:DATA:DSELection`` \n Snippet: ``value: str = driver.source.bb.btooth.pconfiguration.data.get_dselection()`` \n The command selects data list file. :return: dselection: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:PCONfiguration:DATA:DSELection?') return trim_str_response(response)
[docs] def set_dselection(self, dselection: str) -> None: """ ``[SOURce<HW>]:BB:BTOoth:PCONfiguration:DATA:DSELection`` \n Snippet: ``driver.source.bb.btooth.pconfiguration.data.set_dselection(dselection = 'abc')`` \n The command selects data list file. :param dselection: string """ param = Conversions.value_to_quoted_str(dselection) self._core.io.write(f'SOURce<HwInstance>:BB:BTOoth:PCONfiguration:DATA:DSELection {param}')
[docs] def get_vd_selection(self) -> str: """ ``[SOURce<HW>]:BB:BTOoth:PCONfiguration:DATA:VDSElection`` \n Snippet: ``value: str = driver.source.bb.btooth.pconfiguration.data.get_vd_selection()`` \n Selects the data list for voice data. :return: vd_selection: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:PCONfiguration:DATA:VDSElection?') return trim_str_response(response)
[docs] def set_vd_selection(self, vd_selection: str) -> None: """ ``[SOURce<HW>]:BB:BTOoth:PCONfiguration:DATA:VDSElection`` \n Snippet: ``driver.source.bb.btooth.pconfiguration.data.set_vd_selection(vd_selection = 'abc')`` \n Selects the data list for voice data. :param vd_selection: string """ param = Conversions.value_to_quoted_str(vd_selection) self._core.io.write(f'SOURce<HwInstance>:BB:BTOoth:PCONfiguration:DATA:VDSElection {param}')
# noinspection PyTypeChecker
[docs] def get_value(self) -> enums.DataSourceB: """ ``[SOURce<HW>]:BB:BTOoth:PCONfiguration:DATA`` \n Snippet: ``value: enums.DataSourceB = driver.source.bb.btooth.pconfiguration.data.get_value()`` \n Selects the data source used for the payload. :return: data: ALL0 | ALL1 | PATTern | PN09 | PN11 | PN15 | PN16 | PN20 | PN21 | PN23 | DLISt """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:PCONfiguration:DATA?') return Conversions.str_to_scalar_enum(response, enums.DataSourceB)
[docs] def set_value(self, data: enums.DataSourceB) -> None: """ ``[SOURce<HW>]:BB:BTOoth:PCONfiguration:DATA`` \n Snippet: ``driver.source.bb.btooth.pconfiguration.data.set_value(data = enums.DataSourceB.ALL0)`` \n Selects the data source used for the payload. :param data: ALL0 | ALL1 | PATTern | PN09 | PN11 | PN15 | PN16 | PN20 | PN21 | PN23 | DLISt """ param = Conversions.enum_scalar_to_str(data, enums.DataSourceB) self._core.io.write(f'SOURce<HwInstance>:BB:BTOoth:PCONfiguration:DATA {param}')
def clone(self) -> 'DataCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = DataCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group