Source code for RsFsw.Implementations.Applications.K149_Uwb.Sense.Capture.Oversampling

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


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

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

[docs] def set(self, ov_factor: enums.OversampleFactor) -> None: """ ``[SENSe]:CAPTure:OVERsampling`` \n Snippet: ``driver.applications.k149Uwb.sense.capture.oversampling.set(ov_factor = enums.OversampleFactor.OV10)`` \n Sets the oversampling factor. :param ov_factor: OV4 | OV6 | OV8 | OV10 | OV12 """ param = Conversions.enum_scalar_to_str(ov_factor, enums.OversampleFactor) self._core.io.write(f'SENSe:CAPTure:OVERsampling {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.OversampleFactor: """ ``[SENSe]:CAPTure:OVERsampling`` \n Snippet: ``value: enums.OversampleFactor = driver.applications.k149Uwb.sense.capture.oversampling.get()`` \n Sets the oversampling factor. :return: ov_factor: OV4 | OV6 | OV8 | OV10 | OV12 """ response = self._core.io.query_str(f'SENSe:CAPTure:OVERsampling?') return Conversions.str_to_scalar_enum(response, enums.OversampleFactor)