from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DownlinkCls:
"""Downlink commands group definition. 7 total commands, 3 Subgroups, 4 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("downlink", core, parent)
@property
def dall(self):
"""dall commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_dall'):
from .Dall import DallCls
self._dall = DallCls(self._core, self._cmd_group)
return self._dall
@property
def eall(self):
"""eall commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_eall'):
from .Eall import EallCls
self._eall = EallCls(self._core, self._cmd_group)
return self._eall
@property
def logPoint(self):
"""logPoint commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_logPoint'):
from .LogPoint import LogPointCls
self._logPoint = LogPointCls(self._core, self._cmd_group)
return self._logPoint
[docs] def get_ed_logging(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:V5G:LOGGen:DL:EDLogging \n
Snippet: value: bool = driver.source.bb.v5G.logGen.downlink.get_ed_logging() \n
No command help available \n
:return: ext_dci_log: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:LOGGen:DL:EDLogging?')
return Conversions.str_to_bool(response)
[docs] def set_ed_logging(self, ext_dci_log: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:LOGGen:DL:EDLogging \n
Snippet: driver.source.bb.v5G.logGen.downlink.set_ed_logging(ext_dci_log = False) \n
No command help available \n
:param ext_dci_log: No help available
"""
param = Conversions.bool_to_str(ext_dci_log)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:LOGGen:DL:EDLogging {param}')
[docs] def get_encc(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:V5G:LOGGen:DL:ENCC \n
Snippet: value: bool = driver.source.bb.v5G.logGen.downlink.get_encc() \n
No command help available \n
:return: encc_log_state: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:LOGGen:DL:ENCC?')
return Conversions.str_to_bool(response)
[docs] def set_encc(self, encc_log_state: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:LOGGen:DL:ENCC \n
Snippet: driver.source.bb.v5G.logGen.downlink.set_encc(encc_log_state = False) \n
No command help available \n
:param encc_log_state: No help available
"""
param = Conversions.bool_to_str(encc_log_state)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:LOGGen:DL:ENCC {param}')
[docs] def get_pbch(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:V5G:LOGGen:DL:PBCH \n
Snippet: value: bool = driver.source.bb.v5G.logGen.downlink.get_pbch() \n
No command help available \n
:return: pbch_log_state: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:LOGGen:DL:PBCH?')
return Conversions.str_to_bool(response)
[docs] def set_pbch(self, pbch_log_state: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:LOGGen:DL:PBCH \n
Snippet: driver.source.bb.v5G.logGen.downlink.set_pbch(pbch_log_state = False) \n
No command help available \n
:param pbch_log_state: No help available
"""
param = Conversions.bool_to_str(pbch_log_state)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:LOGGen:DL:PBCH {param}')
[docs] def get_pdsch(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:V5G:LOGGen:DL:PDSCh \n
Snippet: value: bool = driver.source.bb.v5G.logGen.downlink.get_pdsch() \n
No command help available \n
:return: pdsch_log_state: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:LOGGen:DL:PDSCh?')
return Conversions.str_to_bool(response)
[docs] def set_pdsch(self, pdsch_log_state: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:LOGGen:DL:PDSCh \n
Snippet: driver.source.bb.v5G.logGen.downlink.set_pdsch(pdsch_log_state = False) \n
No command help available \n
:param pdsch_log_state: No help available
"""
param = Conversions.bool_to_str(pdsch_log_state)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:LOGGen:DL:PDSCh {param}')
def clone(self) -> 'DownlinkCls':
"""Clones the group by creating new object from it and its whole existing subgroups
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group"""
new_group = DownlinkCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group