Source code for RsFsw.Implementations.Applications.K149_Uwb.Sense.Demod.Sts.FormatPy

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


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

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

[docs] def set(self, sts_format: enums.StsFormat) -> None: """ ``[SENSe]:DEMod:STS:FORMat`` \n Snippet: ``driver.applications.k149Uwb.sense.demod.sts.formatPy.set(sts_format = enums.StsFormat.F0)`` \n Sets the STS format. :param sts_format: F0 | F1 | F2 | F3 """ param = Conversions.enum_scalar_to_str(sts_format, enums.StsFormat) self._core.io.write(f'SENSe:DEMod:STS:FORMat {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.StsFormat: """ ``[SENSe]:DEMod:STS:FORMat`` \n Snippet: ``value: enums.StsFormat = driver.applications.k149Uwb.sense.demod.sts.formatPy.get()`` \n Sets the STS format. :return: sts_format: F0 | F1 | F2 | F3 """ response = self._core.io.query_str(f'SENSe:DEMod:STS:FORMat?') return Conversions.str_to_scalar_enum(response, enums.StsFormat)