from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.StructBase import StructBase
from .....Internal.ArgStruct import ArgStruct
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class AbsoluteCls:
"""Absolute commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("absolute", core, parent)
# noinspection PyTypeChecker
[docs]
class FetchStruct(StructBase):
"""Response structure. Fields: \n
- Reliability: int: decimal See 'Reliability indicator'
- Ack: int: decimal Number of received acknowledgments
- Nack: int: decimal Number of received negative acknowledgments
- Expired_Subframes: int: No parameter help available
- Throughput: float: float Average DL throughput Unit: kbit/s
- Dtx: int: decimal Number of sent scheduled subframes for which no ACK and no NACK has been received
- Scheduled: int: decimal Number of already sent scheduled subframes
- Median_Cqi: int: decimal Median value of received CQI indices"""
__meta_args_list = [
ArgStruct.scalar_int('Reliability', 'Reliability'),
ArgStruct.scalar_int('Ack'),
ArgStruct.scalar_int('Nack'),
ArgStruct.scalar_int('Expired_Subframes'),
ArgStruct.scalar_float('Throughput'),
ArgStruct.scalar_int('Dtx'),
ArgStruct.scalar_int('Scheduled'),
ArgStruct.scalar_int('Median_Cqi')]
def __init__(self):
StructBase.__init__(self, self)
self.Reliability: int = None
self.Ack: int = None
self.Nack: int = None
self.Expired_Subframes: int = None
self.Throughput: float = None
self.Dtx: int = None
self.Scheduled: int = None
self.Median_Cqi: int = None
[docs]
def fetch(self, secondaryCompCarrier=repcap.SecondaryCompCarrier.Default, stream=repcap.Stream.Default) -> FetchStruct:
"""SCPI: FETCh:LTE:SIGNaling<instance>:EBLer:SCC<Carrier>:STReam<Stream>:ABSolute \n
Snippet: value: FetchStruct = driver.ebler.scc.stream.absolute.fetch(secondaryCompCarrier = repcap.SecondaryCompCarrier.Default, stream = repcap.Stream.Default) \n
Returns the absolute results of the BLER measurement for one downlink stream of one carrier. \n
:param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc')
:param stream: optional repeated capability selector. Default value: S1 (settable in the interface 'Stream')
:return: structure: for return value, see the help for FetchStruct structure arguments."""
secondaryCompCarrier_cmd_val = self._cmd_group.get_repcap_cmd_value(secondaryCompCarrier, repcap.SecondaryCompCarrier)
stream_cmd_val = self._cmd_group.get_repcap_cmd_value(stream, repcap.Stream)
return self._core.io.query_struct(f'FETCh:LTE:SIGNaling<Instance>:EBLer:SCC{secondaryCompCarrier_cmd_val}:STReam{stream_cmd_val}:ABSolute?', self.__class__.FetchStruct())