Source code for RsCmwCdma2kSig.Implementations.Configure_.Layer_.Channel_.Sch

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.StructBase import StructBase
from .....Internal.ArgStruct import ArgStruct
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Sch: """Sch commands group definition. 1 total commands, 0 Sub-groups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("sch", core, parent)
[docs] def set(self, walsh_code: int, qof: int) -> None: """SCPI: CONFigure:CDMA:SIGNaling<Instance>:LAYer:CHANnel:SCH \n Snippet: driver.configure.layer.channel.sch.set(walsh_code = 1, qof = 1) \n Defines the Walsh code, quasi-orthogonal function and shows the used spreading factor. See also: - 'Channel Overview' - 'Channelization Codes' \n :param walsh_code: Sets the channelization code of the physical forward channel. Range: 0 to 127 :param qof: The quasi-orthogonal function (QOF) is only available for a forward radio configurations (F-RC) 3 to 5. Range: 0 to 3 """ param = ArgSingleList().compose_cmd_string(ArgSingle('walsh_code', walsh_code, DataType.Integer), ArgSingle('qof', qof, DataType.Integer)) self._core.io.write(f'CONFigure:CDMA:SIGNaling<Instance>:LAYer:CHANnel:SCH {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """Response structure. Fields: \n - Spreading_Factor: int: Queries the spreading factor of the physical forward channel. The SF corresponds to the length of the employed Walsh code. Range: 1 to 128 - Walsh_Code: int: Sets the channelization code of the physical forward channel. Range: 0 to 127 - Qof: int: The quasi-orthogonal function (QOF) is only available for a forward radio configurations (F-RC) 3 to 5. Range: 0 to 3""" __meta_args_list = [ ArgStruct.scalar_int('Spreading_Factor'), ArgStruct.scalar_int('Walsh_Code'), ArgStruct.scalar_int('Qof')] def __init__(self): StructBase.__init__(self, self) self.Spreading_Factor: int = None self.Walsh_Code: int = None self.Qof: int = None
[docs] def get(self) -> GetStruct: """SCPI: CONFigure:CDMA:SIGNaling<Instance>:LAYer:CHANnel:SCH \n Snippet: value: GetStruct = driver.configure.layer.channel.sch.get() \n Defines the Walsh code, quasi-orthogonal function and shows the used spreading factor. See also: - 'Channel Overview' - 'Channelization Codes' \n :return: structure: for return value, see the help for GetStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:CDMA:SIGNaling<Instance>:LAYer:CHANnel:SCH?', self.__class__.GetStruct())