Source code for RsSmw.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 ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ...... import enums


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

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

	# noinspection PyTypeChecker
[docs] class DpatternStruct(StructBase): """ Structure for reading output parameters. Fields: \n - Dpattern: str: numeric - Bitcount: int: integer Range: 1 to 64 """ __meta_args_list = [ ArgStruct.scalar_raw_str('Dpattern'), ArgStruct.scalar_int('Bitcount')] def __init__(self): StructBase.__init__(self, self) self.Dpattern: str=None self.Bitcount: int=None
[docs] def get_dpattern(self) -> DpatternStruct: """ ``[SOURce<HW>]:BB:BTOoth:PCONfiguration:DATA:DPATtern`` \n Snippet: ``value: DpatternStruct = driver.source.bb.btooth.pconfiguration.data.get_dpattern()`` \n Selects the data for a pattern. :return: structure: for return value, see the help for DpatternStruct structure arguments. """ return self._core.io.query_struct('SOURce<HwInstance>:BB:BTOoth:PCONfiguration:DATA:DPATtern?', self.__class__.DpatternStruct())
[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)
# noinspection PyTypeChecker
[docs] class VdPatternStruct(StructBase): """ Structure for reading output parameters. Fields: \n - Vd_Pattern: str: numeric - Bitcount: int: integer Range: 1 to 64 """ __meta_args_list = [ ArgStruct.scalar_raw_str('Vd_Pattern'), ArgStruct.scalar_int('Bitcount')] def __init__(self): StructBase.__init__(self, self) self.Vd_Pattern: str=None self.Bitcount: int=None
[docs] def get_vd_pattern(self) -> VdPatternStruct: """ ``[SOURce<HW>]:BB:BTOoth:PCONfiguration:DATA:VDPAttern`` \n Snippet: ``value: VdPatternStruct = driver.source.bb.btooth.pconfiguration.data.get_vd_pattern()`` \n Sets the bit pattern for the voice data. :return: structure: for return value, see the help for VdPatternStruct structure arguments. """ return self._core.io.query_struct('SOURce<HwInstance>:BB:BTOoth:PCONfiguration:DATA:VDPAttern?', self.__class__.VdPatternStruct())
[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)
# 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)