Source code for RsFsw.Implementations.Applications.K10x_Lte.Unit.Bstr

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


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

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

[docs] def set(self, unit: enums.BitstreamUnit) -> None: """ ``UNIT:BSTR`` \n Snippet: ``driver.applications.k10Xlte.unit.bstr.set(unit = enums.BitstreamUnit.BIT)`` \n Selects the way the bit stream is displayed. :param unit: SYMbols Displays the bit stream using symbols BITs Displays the bit stream using bits """ param = Conversions.enum_scalar_to_str(unit, enums.BitstreamUnit) self._core.io.write(f'UNIT:BSTR {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.BitstreamUnit: """ ``UNIT:BSTR`` \n Snippet: ``value: enums.BitstreamUnit = driver.applications.k10Xlte.unit.bstr.get()`` \n Selects the way the bit stream is displayed. :return: unit: SYMbols Displays the bit stream using symbols BITs Displays the bit stream using bits """ response = self._core.io.query_str(f'UNIT:BSTR?') return Conversions.str_to_scalar_enum(response, enums.BitstreamUnit)