Source code for RsSmw.Implementations.Test.Sw.Scmd

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.StructBase import StructBase
from ....Internal.ArgStruct import ArgStruct
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle


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

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

[docs] def set(self, scmd: str, what_is_this: str) -> None: """ ``TEST<HW>:SW:SCMD`` \n Snippet: ``driver.test.sw.scmd.set(scmd = 'abc', what_is_this = 'abc')`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('scmd', scmd, DataType.String), ArgSingle('what_is_this', what_is_this, DataType.String)) self._core.io.write(f'TEST<HwInstance>:SW:SCMD {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class ScmdStruct(StructBase): """ Response structure. Fields: \n - 1 Scmd: str: No parameter help available - 2 What_Is_This: str: No parameter help available """ __meta_args_list = [ ArgStruct.scalar_str('Scmd'), ArgStruct.scalar_str('What_Is_This')] def __init__(self): StructBase.__init__(self, self) self.Scmd: str = None self.What_Is_This: str = None
[docs] def get(self) -> ScmdStruct: """ ``TEST<HW>:SW:SCMD`` \n Snippet: ``value: ScmdStruct = driver.test.sw.scmd.get()`` \n No help available :return: structure: for return value, see the help for ScmdStruct structure arguments. """ return self._core.io.query_struct(f'TEST<HwInstance>:SW:SCMD?', self.__class__.ScmdStruct())