from ..........Internal.Core import Core
from ..........Internal.CommandsGroup import CommandsGroup
from ..........Internal.RepeatedCapability import RepeatedCapability
from .......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CellCls:
"""
| Commands in total: 15
| Subgroups: 6
| Direct child commands: 2
Repeated Capability Setting:
.. code-block:: python
# Range: Nr0 .. Nr63 \n
driver.source.bb.eutra.downlink.user.asPy.uplink.cell.repcap_cellNull_set(repcap.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):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_append'):
from .Append import AppendCls
self._append = AppendCls(self._core, self._cmd_group)
return self._append
@property
def insert(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_insert'):
from .Insert import InsertCls
self._insert = InsertCls(self._core, self._cmd_group)
return self._insert
@property
def selement(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_selement'):
from .Selement import SelementCls
self._selement = SelementCls(self._core, self._cmd_group)
return self._selement
@property
def seqElem(self):
"""
| Commands in total: 8
| Subgroups: 8
| Direct child commands: 0
"""
if not hasattr(self, '_seqElem'):
from .SeqElem import SeqElemCls
self._seqElem = SeqElemCls(self._core, self._cmd_group)
return self._seqElem
@property
def slength(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_slength'):
from .Slength import SlengthCls
self._slength = SlengthCls(self._core, self._cmd_group)
return self._slength
@property
def vulTxPow(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_vulTxPow'):
from .VulTxPow import VulTxPowCls
self._vulTxPow = VulTxPowCls(self._core, self._cmd_group)
return self._vulTxPow
[docs]
def delete(self, userIx=repcap.UserIx.Default, cellNull=repcap.CellNull.Default) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:DL:USER<CH>:AS:UL:CELL<ST0>:DELete`` \n
Snippet: ``driver.source.bb.eutra.downlink.user.asPy.uplink.cell.delete(userIx = repcap.UserIx.Default, cellNull = repcap.CellNull.Default)`` \n
Deletes the selected table element.
: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:UL: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)
"""
``[SOURce<HW>]:BB:EUTRa:DL:USER<CH>:AS:UL:CELL<ST0>:DELete`` \n
Snippet: ``driver.source.bb.eutra.downlink.user.asPy.uplink.cell.delete_with_opc(userIx = repcap.UserIx.Default, cellNull = repcap.CellNull.Default)`` \n
Deletes the selected table element.
Same as delete, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.
: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:UL:CELL{cellNull_cmd_val}:DELete', opc_timeout_ms)
[docs]
def reset(self, userIx=repcap.UserIx.Default, cellNull=repcap.CellNull.Default) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:DL:USER<CH>:AS:UL:CELL<ST0>:RESet`` \n
Snippet: ``driver.source.bb.eutra.downlink.user.asPy.uplink.cell.reset(userIx = repcap.UserIx.Default, cellNull = repcap.CellNull.Default)`` \n
Resets the DCI table, i.e. removes all table elements.
: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:UL: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)
"""
``[SOURce<HW>]:BB:EUTRa:DL:USER<CH>:AS:UL:CELL<ST0>:RESet`` \n
Snippet: ``driver.source.bb.eutra.downlink.user.asPy.uplink.cell.reset_with_opc(userIx = repcap.UserIx.Default, cellNull = repcap.CellNull.Default)`` \n
Resets the DCI table, i.e. removes all table elements.
Same as reset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.
: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:UL: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