Source code for RsSmbv.Implementations.Source.Bb.Eutra.Downlink.Emtc.Bmp

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class BmpCls: """Bmp commands group definition. 7 total commands, 3 Subgroups, 4 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("bmp", core, parent) @property def deselectAll(self): """deselectAll commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_deselectAll'): from .DeselectAll import DeselectAllCls self._deselectAll = DeselectAllCls(self._core, self._cmd_group) return self._deselectAll @property def selectAll(self): """selectAll commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_selectAll'): from .SelectAll import SelectAllCls self._selectAll = SelectAllCls(self._core, self._cmd_group) return self._selectAll @property def valSubFrames(self): """valSubFrames commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_valSubFrames'): from .ValSubFrames import ValSubFramesCls self._valSubFrames = ValSubFramesCls(self._core, self._cmd_group) return self._valSubFrames
[docs] def get_pbchrep(self) -> bool: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:BMP:PBCHrep \n Snippet: value: bool = driver.source.bb.eutra.downlink.emtc.bmp.get_pbchrep() \n Configures the cell for PBCH repetition. \n :return: pbch_repetitions: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:BMP:PBCHrep?') return Conversions.str_to_bool(response)
[docs] def set_pbchrep(self, pbch_repetitions: bool) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:BMP:PBCHrep \n Snippet: driver.source.bb.eutra.downlink.emtc.bmp.set_pbchrep(pbch_repetitions = False) \n Configures the cell for PBCH repetition. \n :param pbch_repetitions: 1| ON| 0| OFF """ param = Conversions.bool_to_str(pbch_repetitions) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:BMP:PBCHrep {param}')
[docs] def get_sibbr(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:BMP:SIBBr \n Snippet: value: int = driver.source.bb.eutra.downlink.emtc.bmp.get_sibbr() \n Sets the number of times the PDSCH allocation carrying the SIB1-BR is repeated. \n :return: sched_info_sib_1_br: integer Range: 0 to 18 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:BMP:SIBBr?') return Conversions.str_to_int(response)
[docs] def set_sibbr(self, sched_info_sib_1_br: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:BMP:SIBBr \n Snippet: driver.source.bb.eutra.downlink.emtc.bmp.set_sibbr(sched_info_sib_1_br = 1) \n Sets the number of times the PDSCH allocation carrying the SIB1-BR is repeated. \n :param sched_info_sib_1_br: integer Range: 0 to 18 """ param = Conversions.decimal_value_to_str(sched_info_sib_1_br) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:BMP:SIBBr {param}')
# noinspection PyTypeChecker
[docs] def get_start(self) -> enums.NumberA: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:BMP:STARt \n Snippet: value: enums.NumberA = driver.source.bb.eutra.downlink.emtc.bmp.get_start() \n Defines the first symbol within a frame that can be used for eMTC. \n :return: starting_symbol: 1| 2| 3| 4 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:BMP:STARt?') return Conversions.str_to_scalar_enum(response, enums.NumberA)
[docs] def set_start(self, starting_symbol: enums.NumberA) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:BMP:STARt \n Snippet: driver.source.bb.eutra.downlink.emtc.bmp.set_start(starting_symbol = enums.NumberA._1) \n Defines the first symbol within a frame that can be used for eMTC. \n :param starting_symbol: 1| 2| 3| 4 """ param = Conversions.enum_scalar_to_str(starting_symbol, enums.NumberA) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:BMP:STARt {param}')
# noinspection PyTypeChecker
[docs] def get_sub_frames(self) -> enums.EutraBitmap: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:BMP:SUBFrames \n Snippet: value: enums.EutraBitmap = driver.source.bb.eutra.downlink.emtc.bmp.get_sub_frames() \n Sets the valid subframes configuration over 10ms or 40ms. \n :return: bitmap_subframes: 10| 40 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:BMP:SUBFrames?') return Conversions.str_to_scalar_enum(response, enums.EutraBitmap)
[docs] def set_sub_frames(self, bitmap_subframes: enums.EutraBitmap) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:BMP:SUBFrames \n Snippet: driver.source.bb.eutra.downlink.emtc.bmp.set_sub_frames(bitmap_subframes = enums.EutraBitmap._10) \n Sets the valid subframes configuration over 10ms or 40ms. \n :param bitmap_subframes: 10| 40 """ param = Conversions.enum_scalar_to_str(bitmap_subframes, enums.EutraBitmap) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:BMP:SUBFrames {param}')
def clone(self) -> 'BmpCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = BmpCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group