Source code for RsSmw.Implementations.Source.Bb.Gsm.Fsk

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


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

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

[docs] def get_deviation(self) -> float: """ ``[SOURce<HW>]:BB:GSM:FSK:DEViation`` \n Snippet: ``value: float = driver.source.bb.gsm.fsk.get_deviation()`` \n Sets the modulation deviation when BB:GSM:FORMat FSK2 is selected. The range of values depends on the symbol rate (BB:GSM:SRATe) . The maximum deviation is 10 MHz. :return: deviation: float Range: 0.1xf(symb) to 1.5xf(symb) ;(10MHz) , Unit: Hz """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GSM:FSK:DEViation?') return Conversions.str_to_float(response)
[docs] def set_deviation(self, deviation: float) -> None: """ ``[SOURce<HW>]:BB:GSM:FSK:DEViation`` \n Snippet: ``driver.source.bb.gsm.fsk.set_deviation(deviation = 1.0)`` \n Sets the modulation deviation when BB:GSM:FORMat FSK2 is selected. The range of values depends on the symbol rate (BB:GSM:SRATe) . The maximum deviation is 10 MHz. :param deviation: float Range: 0.1xf(symb) to 1.5xf(symb) ;(10MHz) , Unit: Hz """ param = Conversions.decimal_value_to_str(deviation) self._core.io.write(f'SOURce<HwInstance>:BB:GSM:FSK:DEViation {param}')