from typing import List
from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SettingCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
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:[LRWPan]:EMLLd:SETTing:CATalog`` \n
Snippet: ``value: List[str] = driver.source.bb.lrWpan.emlld.setting.get_catalog()`` \n
Queries the files with settings in the default directory. Listed are files with the file extension hrpuwb.
Refer to 'Accessing Files in the Default or Specified Directory' for general information on file handling in the default
and in a specific directory.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:EMLLd:SETTing:CATalog?')
return Conversions.str_to_str_list(response)
[docs]
def get_delete(self) -> str:
"""
``[SOURce<HW>]:BB:[LRWPan]:EMLLd:SETTing:DELete`` \n
Snippet: ``value: str = driver.source.bb.lrWpan.emlld.setting.get_delete()`` \n
Deletes the selected file from the default or the specified directory. Deleted are files with extension hrpuwb. Refer to
'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a
specific directory.
:return: filename: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:EMLLd:SETTing:DELete?')
return trim_str_response(response)
[docs]
def set_delete(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:[LRWPan]:EMLLd:SETTing:DELete`` \n
Snippet: ``driver.source.bb.lrWpan.emlld.setting.set_delete(filename = 'abc')`` \n
Deletes the selected file from the default or the specified directory. Deleted are files with extension hrpuwb. Refer to
'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a
specific directory.
:param filename: string
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:EMLLd:SETTing:DELete {param}')