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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DciCls: """Dci commands group definition. 44 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("dci", core, parent) @property def alloc(self): """alloc commands group. 42 Sub-classes, 0 commands.""" if not hasattr(self, '_alloc'): from .Alloc import AllocCls self._alloc = AllocCls(self._core, self._cmd_group) return self._alloc
[docs] def get_awa_round(self) -> bool: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:DCI:AWARound \n Snippet: value: bool = driver.source.bb.eutra.downlink.emtc.dci.get_awa_round() \n If enabled, the PDSCH allocations are relocated at the beginning of the ARB sequence to ensure a consistent signal. \n :return: alloc_wrap_around: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:DCI:AWARound?') return Conversions.str_to_bool(response)
[docs] def set_awa_round(self, alloc_wrap_around: bool) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:DCI:AWARound \n Snippet: driver.source.bb.eutra.downlink.emtc.dci.set_awa_round(alloc_wrap_around = False) \n If enabled, the PDSCH allocations are relocated at the beginning of the ARB sequence to ensure a consistent signal. \n :param alloc_wrap_around: 1| ON| 0| OFF """ param = Conversions.bool_to_str(alloc_wrap_around) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:DCI:AWARound {param}')
[docs] def get_nalloc(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:DCI:NALLoc \n Snippet: value: int = driver.source.bb.eutra.downlink.emtc.dci.get_nalloc() \n Sets the number of configurable DCIs. \n :return: dci_number_alloc: integer Range: 0 to 400 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:DCI:NALLoc?') return Conversions.str_to_int(response)
[docs] def set_nalloc(self, dci_number_alloc: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:DCI:NALLoc \n Snippet: driver.source.bb.eutra.downlink.emtc.dci.set_nalloc(dci_number_alloc = 1) \n Sets the number of configurable DCIs. \n :param dci_number_alloc: integer Range: 0 to 400 """ param = Conversions.decimal_value_to_str(dci_number_alloc) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:DCI:NALLoc {param}')
def clone(self) -> 'DciCls': """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 = DciCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group