Source code for RsSmw.Implementations.Source.Bb.Dm.Smodulation.Clock.Slope

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


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

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

	# noinspection PyTypeChecker
[docs] def get_bit(self) -> enums.SlopeType: """ ``[SOURce<HW>]:BB:DM:SMODulation:CLOCk:SLOPe:BIT`` \n Snippet: ``value: enums.SlopeType = driver.source.bb.dm.smodulation.clock.slope.get_bit()`` \n Sets the active edge of the bit clock. :return: slope: NEGative | POSitive """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DM:SMODulation:CLOCk:SLOPe:BIT?') return Conversions.str_to_scalar_enum(response, enums.SlopeType)
[docs] def set_bit(self, slope: enums.SlopeType) -> None: """ ``[SOURce<HW>]:BB:DM:SMODulation:CLOCk:SLOPe:BIT`` \n Snippet: ``driver.source.bb.dm.smodulation.clock.slope.set_bit(slope = enums.SlopeType.NEGative)`` \n Sets the active edge of the bit clock. :param slope: NEGative | POSitive """ param = Conversions.enum_scalar_to_str(slope, enums.SlopeType) self._core.io.write(f'SOURce<HwInstance>:BB:DM:SMODulation:CLOCk:SLOPe:BIT {param}')