Source code for RsSmw.Implementations.Source.Bb.Nfc.Setting

from typing import List

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


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

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

[docs] def get_catalog(self) -> List[str]: """ ``[SOURce<HW>]:BB:NFC:SETTing:CATalog`` \n Snippet: ``value: List[str] = driver.source.bb.nfc.setting.get_catalog()`` \n Catalog settings file name. :return: catalog: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:SETTing:CATalog?') return Conversions.str_to_str_list(response)
[docs] def delete(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:NFC:SETTing:DELete`` \n Snippet: ``driver.source.bb.nfc.setting.delete(filename = 'abc')`` \n Deletes the NFC settings file with the filename given in the parameter. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:NFC:SETTing:DELete {param}')
[docs] def load(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:NFC:SETTing:LOAD`` \n Snippet: ``driver.source.bb.nfc.setting.load(filename = 'abc')`` \n Loads the NFC setting file with the name given in the parameter. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:NFC:SETTing:LOAD {param}')
[docs] def set_store(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:NFC:SETTing:STORe`` \n Snippet: ``driver.source.bb.nfc.setting.set_store(filename = 'abc')`` \n Stores current NFC settings in a file with the name given in the parameter. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:NFC:SETTing:STORe {param}')