Source code for RsSmw.Implementations.Source.Bb.Eutra.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: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

	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.EutraTcwfReqAlloc: """ ``[SOURce<HW>]:BB:EUTRa:TCW:FA:FRALlocation`` \n Snippet: ``value: enums.EutraTcwfReqAlloc = driver.source.bb.eutra.tcw.fa.get_fr_allocation()`` \n Determines the frequency position of the wanted and interfering signal. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:FA:FRALlocation?') return Conversions.str_to_scalar_enum(response, enums.EutraTcwfReqAlloc)
[docs] def set_fr_allocation(self, frequency_alloc: enums.EutraTcwfReqAlloc) -> None: """ ``[SOURce<HW>]:BB:EUTRa:TCW:FA:FRALlocation`` \n Snippet: ``driver.source.bb.eutra.tcw.fa.set_fr_allocation(frequency_alloc = enums.EutraTcwfReqAlloc.HIGHer)`` \n Determines the frequency position of the wanted and interfering signal. :param frequency_alloc: HIGHer | LOWer """ param = Conversions.enum_scalar_to_str(frequency_alloc, enums.EutraTcwfReqAlloc) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:FA:FRALlocation {param}')
# noinspection PyTypeChecker
[docs] def get_rb_allocation(self) -> enums.EutraTcwfReqAlloc: """ ``[SOURce<HW>]:BB:EUTRa:TCW:FA:RBALlocation`` \n Snippet: ``value: enums.EutraTcwfReqAlloc = driver.source.bb.eutra.tcw.fa.get_rb_allocation()`` \n Determines the frequency position of the wanted and interfering signal. :return: res_block_alloc: HIGHer | LOWer """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:FA:RBALlocation?') return Conversions.str_to_scalar_enum(response, enums.EutraTcwfReqAlloc)
[docs] def set_rb_allocation(self, res_block_alloc: enums.EutraTcwfReqAlloc) -> None: """ ``[SOURce<HW>]:BB:EUTRa:TCW:FA:RBALlocation`` \n Snippet: ``driver.source.bb.eutra.tcw.fa.set_rb_allocation(res_block_alloc = enums.EutraTcwfReqAlloc.HIGHer)`` \n Determines the frequency position of the wanted and interfering signal. :param res_block_alloc: HIGHer | LOWer """ param = Conversions.enum_scalar_to_str(res_block_alloc, enums.EutraTcwfReqAlloc) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:FA:RBALlocation {param}')