Source code for RsCmwLteSig.Implementations.Sense.UeCapability.Rf.Bcombination.V.Eutra

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class EutraCls: """Eutra commands group definition. 6 total commands, 3 Subgroups, 1 group commands Repeated Capability: EutraBand, default value after init: EutraBand.Band1""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("eutra", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_eutraBand_get', 'repcap_eutraBand_set', repcap.EutraBand.Band1) def repcap_eutraBand_set(self, eutraBand: repcap.EutraBand) -> 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 EutraBand.Default Default value after init: EutraBand.Band1""" self._cmd_group.set_repcap_enum_value(eutraBand) def repcap_eutraBand_get(self) -> repcap.EutraBand: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value() @property def bclass(self): """bclass commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_bclass'): from .Bclass import BclassCls self._bclass = BclassCls(self._core, self._cmd_group) return self._bclass @property def mcapability(self): """mcapability commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_mcapability'): from .Mcapability import McapabilityCls self._mcapability = McapabilityCls(self._core, self._cmd_group) return self._mcapability @property def scproc(self): """scproc commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_scproc'): from .Scproc import ScprocCls self._scproc = ScprocCls(self._core, self._cmd_group) return self._scproc # noinspection PyTypeChecker
[docs] def get(self, ueReport=repcap.UeReport.V1020, eutraBand=repcap.EutraBand.Default) -> List[enums.OperatingBandC]: """SCPI: SENSe:LTE:SIGNaling<instance>:UECapability:RF:BCOMbination:V<Number>:EUTRa<BandNr> \n Snippet: value: List[enums.OperatingBandC] = driver.sense.ueCapability.rf.bcombination.v.eutra.get(ueReport = repcap.UeReport.V1020, eutraBand = repcap.EutraBand.Default) \n Returns the operating band combinations supported for carrier aggregation. \n :param ueReport: optional repeated capability selector. Default value: V1020 :param eutraBand: optional repeated capability selector. Default value: Band1 (settable in the interface 'Eutra') :return: band: UDEFined | OB1 | ... | OB46 | OB48 | ... | OB53 | OB65 | ... | OB76 | OB85 | OB87 | OB88 | OB250 | OB252 | OB255 Comma-separated list of bands, one band per band combination (combination 0 to n)""" ueReport_cmd_val = self._cmd_group.get_repcap_cmd_value(ueReport, repcap.UeReport) eutraBand_cmd_val = self._cmd_group.get_repcap_cmd_value(eutraBand, repcap.EutraBand) response = self._core.io.query_str(f'SENSe:LTE:SIGNaling<Instance>:UECapability:RF:BCOMbination:V{ueReport_cmd_val}:EUTRa{eutraBand_cmd_val}?') return Conversions.str_to_list_enum(response, enums.OperatingBandC)
def clone(self) -> 'EutraCls': """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 = EutraCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group