Source code for RsFsw.Implementations.Applications.K9x_11ad.Configure.Edmg.UcRate

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


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

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

[docs] def set(self, src: enums.SourceType) -> None: """ ``CONFigure:EDMG:UCRate`` \n Snippet: ``driver.applications.k9X11Ad.configure.edmg.ucRate.set(src = enums.SourceType.CUSTom)`` \n Determines whether the chip rate according to standard is used or a non-standard measurement is performed with a user-defined chip rate. :param src: STANdard | CUSTom STANdard Data acquisition is set to the chip rate and sample rate specified in the IEEE 802.11 ay standard. CUSTom The chip rate can be defined freely to perform a non-standard measurement. """ param = Conversions.enum_scalar_to_str(src, enums.SourceType) self._core.io.write(f'CONFigure:EDMG:UCRate {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.SourceType: """ ``CONFigure:EDMG:UCRate`` \n Snippet: ``value: enums.SourceType = driver.applications.k9X11Ad.configure.edmg.ucRate.get()`` \n Determines whether the chip rate according to standard is used or a non-standard measurement is performed with a user-defined chip rate. :return: src: STANdard | CUSTom STANdard Data acquisition is set to the chip rate and sample rate specified in the IEEE 802.11 ay standard. CUSTom The chip rate can be defined freely to perform a non-standard measurement. """ response = self._core.io.query_str(f'CONFigure:EDMG:UCRate?') return Conversions.str_to_scalar_enum(response, enums.SourceType)