Source code for RsSmw.Implementations.Source.Bb.LrWpan.Mms.Sfd

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


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

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

[docs] def get_usr_state(self) -> bool: """ ``[SOURce<HW>]:BB:[LRWPan]:MMS:SFD:USRState`` \n Snippet: ``value: bool = driver.source.bb.lrWpan.mms.sfd.get_usr_state()`` \n Enables using SFD indices SFD_5, SFD_6 and SFD_7. :return: user_state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:MMS:SFD:USRState?') return Conversions.str_to_bool(response)
[docs] def set_usr_state(self, user_state: bool) -> None: """ ``[SOURce<HW>]:BB:[LRWPan]:MMS:SFD:USRState`` \n Snippet: ``driver.source.bb.lrWpan.mms.sfd.set_usr_state(user_state = False)`` \n Enables using SFD indices SFD_5, SFD_6 and SFD_7. :param user_state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(user_state) self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:MMS:SFD:USRState {param}')
# noinspection PyTypeChecker
[docs] def get_value(self) -> enums.HrpUwbSfdIndex: """ ``[SOURce<HW>]:BB:LRWPan:MMS:SFD`` \n Snippet: ``value: enums.HrpUwbSfdIndex = driver.source.bb.lrWpan.mms.sfd.get_value()`` \n Sets the start-of-frame delimiter (SFD) symbol sequence. Option: R&S SMW-K181: SFD: indices and lengths \n - Index / SFD_0 / SFD_1 / SFD_2 / SFD_3 / SFD_4 - SFD / 0 / 1 / 2 / 3 / 4 - SFD length / 8 / 4 / 8 / 16 / 32 :return: sfd_index: SFD_0 | SFD_1 | SFD_2 | SFD_3 | SFD_4 | SFD_5 | SFD_6 | SFD_7 | SFD_8 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:MMS:SFD?') return Conversions.str_to_scalar_enum(response, enums.HrpUwbSfdIndex)
[docs] def set_value(self, sfd_index: enums.HrpUwbSfdIndex) -> None: """ ``[SOURce<HW>]:BB:LRWPan:MMS:SFD`` \n Snippet: ``driver.source.bb.lrWpan.mms.sfd.set_value(sfd_index = enums.HrpUwbSfdIndex.SFD_0)`` \n Sets the start-of-frame delimiter (SFD) symbol sequence. Option: R&S SMW-K181: SFD: indices and lengths \n - Index / SFD_0 / SFD_1 / SFD_2 / SFD_3 / SFD_4 - SFD / 0 / 1 / 2 / 3 / 4 - SFD length / 8 / 4 / 8 / 16 / 32 :param sfd_index: SFD_0 | SFD_1 | SFD_2 | SFD_3 | SFD_4 | SFD_5 | SFD_6 | SFD_7 | SFD_8 """ param = Conversions.enum_scalar_to_str(sfd_index, enums.HrpUwbSfdIndex) self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:MMS:SFD {param}')