Source code for RsSmw.Implementations.Source.Bb.Eutra.Downlink.Mbsfn.Sc

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


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

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

	# noinspection PyTypeChecker
[docs] def get_amode(self) -> enums.EutraMbsfnSfAllMode: """ ``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:SC:AMODe`` \n Snippet: ``value: enums.EutraMbsfnSfAllMode = driver.source.bb.eutra.downlink.mbsfn.sc.get_amode()`` \n Defines whether MBSFN periodic scheduling is 1 or 4 frames. :return: allocation_mode: F1 | F4 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:SC:AMODe?') return Conversions.str_to_scalar_enum(response, enums.EutraMbsfnSfAllMode)
[docs] def set_amode(self, allocation_mode: enums.EutraMbsfnSfAllMode) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:SC:AMODe`` \n Snippet: ``driver.source.bb.eutra.downlink.mbsfn.sc.set_amode(allocation_mode = enums.EutraMbsfnSfAllMode.F1)`` \n Defines whether MBSFN periodic scheduling is 1 or 4 frames. :param allocation_mode: F1 | F4 """ param = Conversions.enum_scalar_to_str(allocation_mode, enums.EutraMbsfnSfAllMode) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:SC:AMODe {param}')
[docs] def get_aoffset(self) -> int: """ ``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:SC:AOFFset`` \n Snippet: ``value: int = driver.source.bb.eutra.downlink.mbsfn.sc.get_aoffset()`` \n Sets the Radio Frame Allocation Offset :return: offset: integer Range: 0 to 31 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:SC:AOFFset?') return Conversions.str_to_int(response)
[docs] def set_aoffset(self, offset: int) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:SC:AOFFset`` \n Snippet: ``driver.source.bb.eutra.downlink.mbsfn.sc.set_aoffset(offset = 1)`` \n Sets the Radio Frame Allocation Offset :param offset: integer Range: 0 to 31 """ param = Conversions.decimal_value_to_str(offset) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:SC:AOFFset {param}')
# noinspection PyTypeChecker
[docs] def get_aper(self) -> enums.EutraMbsfnRfAllPer: """ ``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:SC:APER`` \n Snippet: ``value: enums.EutraMbsfnRfAllPer = driver.source.bb.eutra.downlink.mbsfn.sc.get_aper()`` \n Sets the Radio Frame Allocation Period. :return: alloc_period: AP1 | AP2 | AP4 | AP8 | AP16 | AP32 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:SC:APER?') return Conversions.str_to_scalar_enum(response, enums.EutraMbsfnRfAllPer)
[docs] def set_aper(self, alloc_period: enums.EutraMbsfnRfAllPer) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:SC:APER`` \n Snippet: ``driver.source.bb.eutra.downlink.mbsfn.sc.set_aper(alloc_period = enums.EutraMbsfnRfAllPer.AP1)`` \n Sets the Radio Frame Allocation Period. :param alloc_period: AP1 | AP2 | AP4 | AP8 | AP16 | AP32 """ param = Conversions.enum_scalar_to_str(alloc_period, enums.EutraMbsfnRfAllPer) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:SC:APER {param}')
[docs] def get_aval(self) -> int: """ ``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:SC:AVAL`` \n Snippet: ``value: int = driver.source.bb.eutra.downlink.mbsfn.sc.get_aval()`` \n Defines which MBSFN subframes are allocated. :return: allocation_value: integer Range: 0 to #HFFFFFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:SC:AVAL?') return Conversions.str_to_int(response)
[docs] def set_aval(self, allocation_value: int) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:SC:AVAL`` \n Snippet: ``driver.source.bb.eutra.downlink.mbsfn.sc.set_aval(allocation_value = 1)`` \n Defines which MBSFN subframes are allocated. :param allocation_value: integer Range: 0 to #HFFFFFF """ param = Conversions.decimal_value_to_str(allocation_value) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:SC:AVAL {param}')