from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RefsigCls:
"""
| Commands in total: 18
| Subgroups: 2
| Direct child commands: 4
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("refsig", core, parent)
@property
def drs(self):
"""
| Commands in total: 8
| Subgroups: 0
| Direct child commands: 8
"""
if not hasattr(self, '_drs'):
from .Drs import DrsCls
self._drs = DrsCls(self._core, self._cmd_group)
return self._drs
@property
def srs(self):
"""
| Commands in total: 6
| Subgroups: 0
| Direct child commands: 6
"""
if not hasattr(self, '_srs'):
from .Srs import SrsCls
self._srs = SrsCls(self._core, self._cmd_group)
return self._srs
[docs]
def get_dmrs(self) -> int:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:DMRS`` \n
Snippet: ``value: int = driver.source.bb.v5G.uplink.refsig.get_dmrs()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:DMRS?')
return Conversions.str_to_int(response)
[docs]
def set_dmrs(self, drs_dmrs: int) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:DMRS`` \n
Snippet: ``driver.source.bb.v5G.uplink.refsig.set_dmrs(drs_dmrs = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(drs_dmrs)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:REFSig:DMRS {param}')
[docs]
def get_ds_shift(self) -> int:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:DSSHift`` \n
Snippet: ``value: int = driver.source.bb.v5G.uplink.refsig.get_ds_shift()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:DSSHift?')
return Conversions.str_to_int(response)
[docs]
def set_ds_shift(self, delta_seq_shift: int) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:DSSHift`` \n
Snippet: ``driver.source.bb.v5G.uplink.refsig.set_ds_shift(delta_seq_shift = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(delta_seq_shift)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:REFSig:DSSHift {param}')
[docs]
def get_grp_hopping(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:GRPHopping`` \n
Snippet: ``value: bool = driver.source.bb.v5G.uplink.refsig.get_grp_hopping()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:GRPHopping?')
return Conversions.str_to_bool(response)
[docs]
def set_grp_hopping(self, group_hopping: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:GRPHopping`` \n
Snippet: ``driver.source.bb.v5G.uplink.refsig.set_grp_hopping(group_hopping = False)`` \n
No help available
"""
param = Conversions.bool_to_str(group_hopping)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:REFSig:GRPHopping {param}')
[docs]
def get_seq_hopping(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SEQHopping`` \n
Snippet: ``value: bool = driver.source.bb.v5G.uplink.refsig.get_seq_hopping()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:SEQHopping?')
return Conversions.str_to_bool(response)
[docs]
def set_seq_hopping(self, sequence_hopping: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SEQHopping`` \n
Snippet: ``driver.source.bb.v5G.uplink.refsig.set_seq_hopping(sequence_hopping = False)`` \n
No help available
"""
param = Conversions.bool_to_str(sequence_hopping)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:REFSig:SEQHopping {param}')
def clone(self) -> 'RefsigCls':
"""
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 = RefsigCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group