Source code for RsCmwLteSig.Implementations.Ebler.Pcc.Pmi.Ri

from typing import List

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.ArgSingleSuppressed import ArgSingleSuppressed
from .....Internal.Types import DataType
from .....Internal.RepeatedCapability import RepeatedCapability
from ..... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class RiCls: """Ri commands group definition. 1 total commands, 0 Subgroups, 1 group commands Repeated Capability: ReliabilityIndicatorNo, default value after init: ReliabilityIndicatorNo.RIno1""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ri", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_reliabilityIndicatorNo_get', 'repcap_reliabilityIndicatorNo_set', repcap.ReliabilityIndicatorNo.RIno1) def repcap_reliabilityIndicatorNo_set(self, reliabilityIndicatorNo: repcap.ReliabilityIndicatorNo) -> 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 ReliabilityIndicatorNo.Default Default value after init: ReliabilityIndicatorNo.RIno1""" self._cmd_group.set_repcap_enum_value(reliabilityIndicatorNo) def repcap_reliabilityIndicatorNo_get(self) -> repcap.ReliabilityIndicatorNo: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value()
[docs] def fetch(self, reliabilityIndicatorNo=repcap.ReliabilityIndicatorNo.Default) -> List[int]: """SCPI: FETCh:LTE:SIGNaling<instance>:EBLer[:PCC]:PMI:RI<no> \n Snippet: value: List[int] = driver.ebler.pcc.pmi.ri.fetch(reliabilityIndicatorNo = repcap.ReliabilityIndicatorNo.Default) \n Returns the PMI results for the RI value <no>. \n Use RsCmwLteSig.reliability.last_value to read the updated reliability indicator. \n :param reliabilityIndicatorNo: optional repeated capability selector. Default value: RIno1 (settable in the interface 'Ri') :return: pmi: decimal Comma-separated list of values, indicating the number of received PMI values, see table""" reliabilityIndicatorNo_cmd_val = self._cmd_group.get_repcap_cmd_value(reliabilityIndicatorNo, repcap.ReliabilityIndicatorNo) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_int_list_suppressed(f'FETCh:LTE:SIGNaling<Instance>:EBLer:PCC:PMI:RI{reliabilityIndicatorNo_cmd_val}?', suppressed) return response
def clone(self) -> 'RiCls': """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 = RiCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group