from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.StructBase import StructBase
from ....Internal.ArgStruct import ArgStruct
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class MsFrames:
"""MsFrames commands group definition. 2 total commands, 0 Sub-groups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._base = CommandsGroup("msFrames", core, parent)
# noinspection PyTypeChecker
[docs] class ResultData(StructBase):
"""Response structure. Fields: \n
- Reliability: int: See 'Reliability Indicator'
- Median_Cqim_1: int: The number of subframes with ACK and NACK responses measured at median CQI - 1 in the third stage of measurement (AWGN test case only) Range: 0 to 1E+6
- Median_Cqi: int: The number of subframes with ACK and NACK responses measured at median CQI in the second stage of measurement (AWGN and fading test cases) Range: 0 to 1E+6
- Median_Cqip_2: int: The number of subframes with ACK and NACK responses measured at median CQI + 2 in the third stage of measurement (AWGN test case only) Range: 0 to 1E+6
- Median_Cqip_3: int: The number of subframes with ACK and NACK responses measured at median CQI + 3 in the second stage of measurement (Fading test case only) Range: 0 to 1E+6"""
__meta_args_list = [
ArgStruct.scalar_int('Reliability', 'Reliability'),
ArgStruct.scalar_int('Median_Cqim_1'),
ArgStruct.scalar_int('Median_Cqi'),
ArgStruct.scalar_int('Median_Cqip_2'),
ArgStruct.scalar_int('Median_Cqip_3')]
def __init__(self):
StructBase.__init__(self, self)
self.Reliability: int = None
self.Median_Cqim_1: int = None
self.Median_Cqi: int = None
self.Median_Cqip_2: int = None
self.Median_Cqip_3: int = None
[docs] def fetch(self) -> ResultData:
"""SCPI: FETCh:WCDMa:SIGNaling<instance>:HCQI:CARRier<carrier>:MSFRames \n
Snippet: value: ResultData = driver.hcqi.carrier.msFrames.fetch() \n
Returns the number of subframes measured during the second and third stage of HSDPA CQI measurement to calculate BLER and
DTX. As indicated in the parameter descriptions below, each test case provides valid results for a subset of the
parameters only. For the other parameters NCAP is returned. \n
Global Repeated Capabilities: repcap.Carrier
:return: structure: for return value, see the help for ResultData structure arguments."""
return self._core.io.query_struct(f'FETCh:WCDMa:SIGNaling<Instance>:HCQI:CARRier<Carrier>:MSFRames?', self.__class__.ResultData())
[docs] def read(self) -> ResultData:
"""SCPI: READ:WCDMa:SIGNaling<instance>:HCQI:CARRier<carrier>:MSFRames \n
Snippet: value: ResultData = driver.hcqi.carrier.msFrames.read() \n
Returns the number of subframes measured during the second and third stage of HSDPA CQI measurement to calculate BLER and
DTX. As indicated in the parameter descriptions below, each test case provides valid results for a subset of the
parameters only. For the other parameters NCAP is returned. \n
Global Repeated Capabilities: repcap.Carrier
:return: structure: for return value, see the help for ResultData structure arguments."""
return self._core.io.query_struct(f'READ:WCDMa:SIGNaling<Instance>:HCQI:CARRier<Carrier>:MSFRames?', self.__class__.ResultData())