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

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


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

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

	# noinspection PyTypeChecker
[docs] def get_time(self) -> enums.UnitTimeSecMs: """ ``[SOURce<HW>]:BB:BTOoth:UNIT:TIME`` \n Snippet: ``value: enums.UnitTimeSecMs = driver.source.bb.btooth.unit.get_time()`` \n Sets the time unit for remote control commands. :return: time: S | MS """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:UNIT:TIME?') return Conversions.str_to_scalar_enum(response, enums.UnitTimeSecMs)