Source code for RsSmbv.Implementations.Source.Bb.Eutra.Downlink.User.AsPy.Downlink.Cell

from ..........Internal.Core import Core
from ..........Internal.CommandsGroup import CommandsGroup
from ..........Internal.RepeatedCapability import RepeatedCapability
from .......... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CellCls: """Cell commands group definition. 25 total commands, 12 Subgroups, 2 group commands Repeated Capability: CellNull, default value after init: CellNull.Nr0""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("cell", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_cellNull_get', 'repcap_cellNull_set', repcap.CellNull.Nr0) def repcap_cellNull_set(self, cellNull: repcap.CellNull) -> None: """Repeated Capability default value numeric suffix. This value is used, if you do not explicitely set it in the child set/get methods, or if you leave it to CellNull.Default Default value after init: CellNull.Nr0""" self._cmd_group.set_repcap_enum_value(cellNull) def repcap_cellNull_get(self) -> repcap.CellNull: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value() @property def append(self): """append commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_append'): from .Append import AppendCls self._append = AppendCls(self._core, self._cmd_group) return self._append @property def fmcs(self): """fmcs commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_fmcs'): from .Fmcs import FmcsCls self._fmcs = FmcsCls(self._core, self._cmd_group) return self._fmcs @property def insert(self): """insert commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_insert'): from .Insert import InsertCls self._insert = InsertCls(self._core, self._cmd_group) return self._insert @property def mcsMode(self): """mcsMode commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_mcsMode'): from .McsMode import McsModeCls self._mcsMode = McsModeCls(self._core, self._cmd_group) return self._mcsMode @property def rvcSequence(self): """rvcSequence commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_rvcSequence'): from .RvcSequence import RvcSequenceCls self._rvcSequence = RvcSequenceCls(self._core, self._cmd_group) return self._rvcSequence @property def selement(self): """selement commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_selement'): from .Selement import SelementCls self._selement = SelementCls(self._core, self._cmd_group) return self._selement @property def seqElem(self): """seqElem commands group. 6 Sub-classes, 0 commands.""" if not hasattr(self, '_seqElem'): from .SeqElem import SeqElemCls self._seqElem = SeqElemCls(self._core, self._cmd_group) return self._seqElem @property def slength(self): """slength commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_slength'): from .Slength import SlengthCls self._slength = SlengthCls(self._core, self._cmd_group) return self._slength @property def tcr(self): """tcr commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_tcr'): from .Tcr import TcrCls self._tcr = TcrCls(self._core, self._cmd_group) return self._tcr @property def tmod(self): """tmod commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_tmod'): from .Tmod import TmodCls self._tmod = TmodCls(self._core, self._cmd_group) return self._tmod @property def urlCounter(self): """urlCounter commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_urlCounter'): from .UrlCounter import UrlCounterCls self._urlCounter = UrlCounterCls(self._core, self._cmd_group) return self._urlCounter @property def usubframe(self): """usubframe commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_usubframe'): from .Usubframe import UsubframeCls self._usubframe = UsubframeCls(self._core, self._cmd_group) return self._usubframe
[docs] def delete(self, userIx=repcap.UserIx.Default, cellNull=repcap.CellNull.Default) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:USER<CH>:AS:DL:CELL<ST0>:DELete \n Snippet: driver.source.bb.eutra.downlink.user.asPy.downlink.cell.delete(userIx = repcap.UserIx.Default, cellNull = repcap.CellNull.Default) \n Deletes the selected table element. \n :param userIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'User') :param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell') """ userIx_cmd_val = self._cmd_group.get_repcap_cmd_value(userIx, repcap.UserIx) cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:USER{userIx_cmd_val}:AS:DL:CELL{cellNull_cmd_val}:DELete')
[docs] def delete_with_opc(self, userIx=repcap.UserIx.Default, cellNull=repcap.CellNull.Default, opc_timeout_ms: int = -1) -> None: userIx_cmd_val = self._cmd_group.get_repcap_cmd_value(userIx, repcap.UserIx) cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull) """SCPI: [SOURce<HW>]:BB:EUTRa:DL:USER<CH>:AS:DL:CELL<ST0>:DELete \n Snippet: driver.source.bb.eutra.downlink.user.asPy.downlink.cell.delete_with_opc(userIx = repcap.UserIx.Default, cellNull = repcap.CellNull.Default) \n Deletes the selected table element. \n Same as delete, but waits for the operation to complete before continuing further. Use the RsSmbv.utilities.opc_timeout_set() to set the timeout value. \n :param userIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'User') :param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:EUTRa:DL:USER{userIx_cmd_val}:AS:DL:CELL{cellNull_cmd_val}:DELete', opc_timeout_ms)
[docs] def reset(self, userIx=repcap.UserIx.Default, cellNull=repcap.CellNull.Default) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:USER<CH>:AS:DL:CELL<ST0>:RESet \n Snippet: driver.source.bb.eutra.downlink.user.asPy.downlink.cell.reset(userIx = repcap.UserIx.Default, cellNull = repcap.CellNull.Default) \n Resets the DCI table, i.e. removes all table elements. \n :param userIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'User') :param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell') """ userIx_cmd_val = self._cmd_group.get_repcap_cmd_value(userIx, repcap.UserIx) cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:USER{userIx_cmd_val}:AS:DL:CELL{cellNull_cmd_val}:RESet')
[docs] def reset_with_opc(self, userIx=repcap.UserIx.Default, cellNull=repcap.CellNull.Default, opc_timeout_ms: int = -1) -> None: userIx_cmd_val = self._cmd_group.get_repcap_cmd_value(userIx, repcap.UserIx) cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull) """SCPI: [SOURce<HW>]:BB:EUTRa:DL:USER<CH>:AS:DL:CELL<ST0>:RESet \n Snippet: driver.source.bb.eutra.downlink.user.asPy.downlink.cell.reset_with_opc(userIx = repcap.UserIx.Default, cellNull = repcap.CellNull.Default) \n Resets the DCI table, i.e. removes all table elements. \n Same as reset, but waits for the operation to complete before continuing further. Use the RsSmbv.utilities.opc_timeout_set() to set the timeout value. \n :param userIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'User') :param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:EUTRa:DL:USER{userIx_cmd_val}:AS:DL:CELL{cellNull_cmd_val}:RESet', opc_timeout_ms)
def clone(self) -> 'CellCls': """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 = CellCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group