Source code for RsSmw.Implementations.Source.Bb.Btooth.Pramping

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


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

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

[docs] def get_foffset(self) -> int: """ ``[SOURce<HW>]:BB:BTOoth:PRAMping:FOFFset`` \n Snippet: ``value: int = driver.source.bb.btooth.pramping.get_foffset()`` \n Sets the offset of the falling edge of a burst. The offset is specified by the selected number of symbols. Negative values shift the falling edge to earlier positions, which results in a corresponding number of skipped symbols at the end of the burst. Positive values shift the falling edge to later positions, which results in a corresponding number of added 0 padding symbols following the burst. :return: foffset: integer Range: -32 to 32 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:PRAMping:FOFFset?') return Conversions.str_to_int(response)
# noinspection PyTypeChecker
[docs] def get_rfunction(self) -> enums.RampFunc: """ ``[SOURce<HW>]:BB:BTOoth:PRAMping:RFUNction`` \n Snippet: ``value: enums.RampFunc = driver.source.bb.btooth.pramping.get_rfunction()`` \n The command selects the form of the transmitted power, i.e. the shape of the rising and falling edges during power ramp control. :return: rfunction: LINear | COSine """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:PRAMping:RFUNction?') return Conversions.str_to_scalar_enum(response, enums.RampFunc)
[docs] def get_roffset(self) -> int: """ ``[SOURce<HW>]:BB:BTOoth:PRAMping:ROFFset`` \n Snippet: ``value: int = driver.source.bb.btooth.pramping.get_roffset()`` \n Sets the offset of the rising edge of a burst. The offset is specified by the selected number of symbols. Negative values shift the rising edge to earlier positions, which results in a corresponding number of added 0 padding symbols before the burst. Positive values shift the rising edge to later positions, which results in a corresponding number of skipped symbols at the beginning of the burst. :return: roffset: integer Range: -32 to 32 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:PRAMping:ROFFset?') return Conversions.str_to_int(response)
[docs] def get_rtime(self) -> int: """ ``[SOURce<HW>]:BB:BTOoth:PRAMping:RTIMe`` \n Snippet: ``value: int = driver.source.bb.btooth.pramping.get_rtime()`` \n Sets the ramp time, which extends the burst by a corresponding number of 0 padding symbols at the beginning and the end of a burst. During this period of time, power ramping is based on the specified ramp function. :return: rtime: integer Range: 1 to 32 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:PRAMping:RTIMe?') return Conversions.str_to_int(response)