Source code for RsSmw.Implementations.Source.Bb.Eutra.Downlink.Carrier.Niot.CrsSeq

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CrsSeqCls: """CrsSeq commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("crsSeq", core, parent)
[docs] def set(self, crs_seq_info: enums.NumbersE, carrier=repcap.Carrier.Default) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:CARRier<CH>:NIOT:CRSSeq \n Snippet: driver.source.bb.eutra.downlink.carrier.niot.crsSeq.set(crs_seq_info = enums.NumbersE._0, carrier = repcap.Carrier.Default) \n Sets the CRS sequence info. \n :param crs_seq_info: 0| 1| 2| 3| 4| 5| 6| 7| 8| 9| 10| 11| 12| 13| 14| 15| 16| 17| 18| 19| 20| 21| 22| 23| 24| 25| 26| 27| 28| 29| 30| 31 :param carrier: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Carrier') """ param = Conversions.enum_scalar_to_str(crs_seq_info, enums.NumbersE) carrier_cmd_val = self._cmd_group.get_repcap_cmd_value(carrier, repcap.Carrier) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:CARRier{carrier_cmd_val}:NIOT:CRSSeq {param}')
# noinspection PyTypeChecker
[docs] def get(self, carrier=repcap.Carrier.Default) -> enums.NumbersE: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:CARRier<CH>:NIOT:CRSSeq \n Snippet: value: enums.NumbersE = driver.source.bb.eutra.downlink.carrier.niot.crsSeq.get(carrier = repcap.Carrier.Default) \n Sets the CRS sequence info. \n :param carrier: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Carrier') :return: crs_seq_info: 0| 1| 2| 3| 4| 5| 6| 7| 8| 9| 10| 11| 12| 13| 14| 15| 16| 17| 18| 19| 20| 21| 22| 23| 24| 25| 26| 27| 28| 29| 30| 31""" carrier_cmd_val = self._cmd_group.get_repcap_cmd_value(carrier, repcap.Carrier) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:EUTRa:DL:CARRier{carrier_cmd_val}:NIOT:CRSSeq?') return Conversions.str_to_scalar_enum(response, enums.NumbersE)