Source code for RsSmbv.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
[docs]class FaCls: """Fa commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" 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: """SCPI: [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. \n :return: frequency_alloc: No help available """ 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: """SCPI: [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. \n :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: """SCPI: [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. \n :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: """SCPI: [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. \n :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}')