Source code for RsFsw.Implementations.Applications.K10x_Lte.Configure.Lte.Duplexing

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


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

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

[docs] def set(self, duplexing: enums.DuplexingLte) -> None: """ ``CONFigure[:LTE]:DUPLexing`` \n Snippet: ``driver.applications.k10Xlte.configure.lte.duplexing.set(duplexing = enums.DuplexingLte.FDD)`` \n Selects the duplexing mode. :param duplexing: TDD Time division duplex FDD Frequency division duplex """ param = Conversions.enum_scalar_to_str(duplexing, enums.DuplexingLte) self._core.io.write(f'CONFigure:LTE:DUPLexing {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.DuplexingLte: """ ``CONFigure[:LTE]:DUPLexing`` \n Snippet: ``value: enums.DuplexingLte = driver.applications.k10Xlte.configure.lte.duplexing.get()`` \n Selects the duplexing mode. :return: duplexing: TDD Time division duplex FDD Frequency division duplex """ response = self._core.io.query_str(f'CONFigure:LTE:DUPLexing?') return Conversions.str_to_scalar_enum(response, enums.DuplexingLte)