Source code for RsSmbv.Implementations.Source.Bb.Eutra.Downlink.Mbsfn.Ai

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AiCls: """Ai commands group definition. 18 total commands, 1 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ai", core, parent) @property def mcch(self): """mcch commands group. 5 Sub-classes, 10 commands.""" if not hasattr(self, '_mcch'): from .Mcch import McchCls self._mcch = McchCls(self._core, self._cmd_group) return self._mcch
[docs] def get_id(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MBSFn:AI:ID \n Snippet: value: int = driver.source.bb.eutra.downlink.mbsfn.ai.get_id() \n Defines the MBSFN area ID, parameter NidMBSFN. \n :return: area_id: integer Range: 0 to 255 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:AI:ID?') return Conversions.str_to_int(response)
[docs] def set_id(self, area_id: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MBSFn:AI:ID \n Snippet: driver.source.bb.eutra.downlink.mbsfn.ai.set_id(area_id = 1) \n Defines the MBSFN area ID, parameter NidMBSFN. \n :param area_id: integer Range: 0 to 255 """ param = Conversions.decimal_value_to_str(area_id) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:AI:ID {param}')
[docs] def get_nind(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MBSFn:AI:NIND \n Snippet: value: int = driver.source.bb.eutra.downlink.mbsfn.ai.get_nind() \n Defines which PDCCH bit is used to notify the UE about change of the MCCH applicable for this MBSFN area. \n :return: notif_indicator: integer Range: 0 to 7 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:AI:NIND?') return Conversions.str_to_int(response)
[docs] def set_nind(self, notif_indicator: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MBSFn:AI:NIND \n Snippet: driver.source.bb.eutra.downlink.mbsfn.ai.set_nind(notif_indicator = 1) \n Defines which PDCCH bit is used to notify the UE about change of the MCCH applicable for this MBSFN area. \n :param notif_indicator: integer Range: 0 to 7 """ param = Conversions.decimal_value_to_str(notif_indicator) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:AI:NIND {param}')
[docs] def get_nmrl(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MBSFn:AI:NMRL \n Snippet: value: int = driver.source.bb.eutra.downlink.mbsfn.ai.get_nmrl() \n Defines how many symbols from the beginning of the subframe constitute the non-MBSFN region. \n :return: region_length: integer Range: 1 to 2 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:AI:NMRL?') return Conversions.str_to_int(response)
[docs] def set_nmrl(self, region_length: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MBSFn:AI:NMRL \n Snippet: driver.source.bb.eutra.downlink.mbsfn.ai.set_nmrl(region_length = 1) \n Defines how many symbols from the beginning of the subframe constitute the non-MBSFN region. \n :param region_length: integer Range: 1 to 2 """ param = Conversions.decimal_value_to_str(region_length) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:AI:NMRL {param}')
def clone(self) -> 'AiCls': """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 = AiCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group