Source code for RsSmbv.Implementations.Source.Bb.Btooth.Msettings

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


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

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

[docs] def get_fdeviation(self) -> float: """ ``[SOURce<HW>]:BB:BTOoth:MSETtings:FDEViation`` \n Snippet: ``value: float = driver.source.bb.btooth.msettings.get_fdeviation()`` \n Sets the frequency deviation. :return: fdeviation: float Range: Depends on Bluetooth mode """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:MSETtings:FDEViation?') return Conversions.str_to_float(response)
[docs] def set_fdeviation(self, fdeviation: float) -> None: """ ``[SOURce<HW>]:BB:BTOoth:MSETtings:FDEViation`` \n Snippet: ``driver.source.bb.btooth.msettings.set_fdeviation(fdeviation = 1.0)`` \n Sets the frequency deviation. :param fdeviation: float Range: Depends on Bluetooth mode """ param = Conversions.decimal_value_to_str(fdeviation) self._core.io.write(f'SOURce<HwInstance>:BB:BTOoth:MSETtings:FDEViation {param}')