Source code for RsCmwCdma2kSig.Implementations.Configure_.Layer_.Soption

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Soption: """Soption commands group definition. 1 total commands, 0 Sub-groups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("soption", core, parent) # noinspection PyTypeChecker
[docs] def get_first(self) -> enums.ServiceOption: """SCPI: CONFigure:CDMA:SIGNaling<Instance>:LAYer:SOPTion:FIRSt \n Snippet: value: enums.ServiceOption = driver.configure.layer.soption.get_first() \n Queries the current primary service option used during the connection to the mobile station, see also '1st Service Option'. Setting this value has no effect as the service option parameter is a result of the session negotiation. \n :return: service_option: SO1 | SO2 | SO3 | SO9 | SO17 | SO32 | SO33 | SO55 | SO68 | SO8000 | SO70 | SO73 Speech services: SO1, SO3, SO17, SO68, SO70, SO73 and SO8000 used for a voice call to the MS Loopback services: SO2, SO9 and SO55 used for testing; e.g. for the CDMA2000 RX FER FCH tests. Test data service: SO32 used for testing of the high data rates using the supplemental channel SCH0; e.g. for the CDMA2000 RX FER SCH0 tests. Packet data service: SO33 used for PPP connection between the MS and DAU; see 'Packet Data Service'. """ response = self._core.io.query_str('CONFigure:CDMA:SIGNaling<Instance>:LAYer:SOPTion:FIRSt?') return Conversions.str_to_scalar_enum(response, enums.ServiceOption)
[docs] def set_first(self, service_option: enums.ServiceOption) -> None: """SCPI: CONFigure:CDMA:SIGNaling<Instance>:LAYer:SOPTion:FIRSt \n Snippet: driver.configure.layer.soption.set_first(service_option = enums.ServiceOption.SO1) \n Queries the current primary service option used during the connection to the mobile station, see also '1st Service Option'. Setting this value has no effect as the service option parameter is a result of the session negotiation. \n :param service_option: SO1 | SO2 | SO3 | SO9 | SO17 | SO32 | SO33 | SO55 | SO68 | SO8000 | SO70 | SO73 Speech services: SO1, SO3, SO17, SO68, SO70, SO73 and SO8000 used for a voice call to the MS Loopback services: SO2, SO9 and SO55 used for testing; e.g. for the CDMA2000 RX FER FCH tests. Test data service: SO32 used for testing of the high data rates using the supplemental channel SCH0; e.g. for the CDMA2000 RX FER SCH0 tests. Packet data service: SO33 used for PPP connection between the MS and DAU; see 'Packet Data Service'. """ param = Conversions.enum_scalar_to_str(service_option, enums.ServiceOption) self._core.io.write(f'CONFigure:CDMA:SIGNaling<Instance>:LAYer:SOPTion:FIRSt {param}')