from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Drc:
"""Drc commands group definition. 5 total commands, 0 Sub-groups, 5 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._base = CommandsGroup("drc", core, parent)
[docs] def get_type_py(self) -> int:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:LAYer:APPLication:FETap:DRC:TYPE \n
Snippet: value: int = driver.configure.layer.application.fetap.drc.get_type_py() \n
Selects the packet type for FETAP packets. Use the queries in the ...DRC... subsystem to query the corresponding DRC
index, packet size, data rate, and slot count. \n
:return: drc_type: Range: 1 to 37
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:LAYer:APPLication:FETap:DRC:TYPE?')
return Conversions.str_to_int(response)
[docs] def set_type_py(self, drc_type: int) -> None:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:LAYer:APPLication:FETap:DRC:TYPE \n
Snippet: driver.configure.layer.application.fetap.drc.set_type_py(drc_type = 1) \n
Selects the packet type for FETAP packets. Use the queries in the ...DRC... subsystem to query the corresponding DRC
index, packet size, data rate, and slot count. \n
:param drc_type: Range: 1 to 37
"""
param = Conversions.decimal_value_to_str(drc_type)
self._core.io.write(f'CONFigure:EVDO:SIGNaling<Instance>:LAYer:APPLication:FETap:DRC:TYPE {param}')
[docs] def get_index(self) -> int:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:LAYer:APPLication:FETap:DRC:INDex \n
Snippet: value: int = driver.configure.layer.application.fetap.drc.get_index() \n
Queries the data rate index for FETAP packets, depending on the selected packet type (method RsCmwEvdoSig.Configure.Layer.
Application.Fetap.Drc.typePy) . \n
:return: drc_index: Range: 1 to 14
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:LAYer:APPLication:FETap:DRC:INDex?')
return Conversions.str_to_int(response)
[docs] def get_size(self) -> int:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:LAYer:APPLication:FETap:DRC:SIZE \n
Snippet: value: int = driver.configure.layer.application.fetap.drc.get_size() \n
Queries the packet size for FETAP packets, depending on the selected packet type (method RsCmwEvdoSig.Configure.Layer.
Application.Fetap.Drc.typePy) . \n
:return: drc_size: Range: 128 to 5120
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:LAYer:APPLication:FETap:DRC:SIZE?')
return Conversions.str_to_int(response)
[docs] def get_rate(self) -> float:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:LAYer:APPLication:FETap:DRC:RATE \n
Snippet: value: float = driver.configure.layer.application.fetap.drc.get_rate() \n
Queries the data rate for FETAP packets, depending on the selected packet type (method RsCmwEvdoSig.Configure.Layer.
Application.Fetap.Drc.typePy) . \n
:return: drc_rate: Range: 4.8 kbit/s to 3072 kbit/s
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:LAYer:APPLication:FETap:DRC:RATE?')
return Conversions.str_to_float(response)
[docs] def get_slots(self) -> int:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:LAYer:APPLication:FETap:DRC:SLOTs \n
Snippet: value: int = driver.configure.layer.application.fetap.drc.get_slots() \n
Queries the slot count for FETAP packets, depending on the selected packet type (method RsCmwEvdoSig.Configure.Layer.
Application.Fetap.Drc.typePy) . \n
:return: drc_slots: Range: 1 to 16
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:LAYer:APPLication:FETap:DRC:SLOTs?')
return Conversions.str_to_int(response)