Source code for RsSmw.Implementations.Source.Bb.Nr5G.Tcw.Fa

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


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

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

	# noinspection PyTypeChecker
[docs] def get_fr_allocation(self) -> enums.LowHigh: """ ``[SOURce<HW>]:BB:NR5G:TCW:FA:FRALlocation`` \n Snippet: ``value: enums.LowHigh = driver.source.bb.nr5G.tcw.fa.get_fr_allocation()`` \n Sets the frequency allocation to FR1 or FR2. :return: freq_alloc: LOW | HIGH """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:TCW:FA:FRALlocation?') return Conversions.str_to_scalar_enum(response, enums.LowHigh)
[docs] def set_fr_allocation(self, freq_alloc: enums.LowHigh) -> None: """ ``[SOURce<HW>]:BB:NR5G:TCW:FA:FRALlocation`` \n Snippet: ``driver.source.bb.nr5G.tcw.fa.set_fr_allocation(freq_alloc = enums.LowHigh.HIGH)`` \n Sets the frequency allocation to FR1 or FR2. :param freq_alloc: LOW | HIGH """ param = Conversions.enum_scalar_to_str(freq_alloc, enums.LowHigh) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:TCW:FA:FRALlocation {param}')