from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
from ......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HsetCls:
"""
| Commands in total: 37
| Subgroups: 29
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("hset", core, parent)
@property
def acLength(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_acLength'):
from .AcLength import AcLengthCls
self._acLength = AcLengthCls(self._core, self._cmd_group)
return self._acLength
@property
def altModulation(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_altModulation'):
from .AltModulation import AltModulationCls
self._altModulation = AltModulationCls(self._core, self._cmd_group)
return self._altModulation
@property
def amode(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_amode'):
from .Amode import AmodeCls
self._amode = AmodeCls(self._core, self._cmd_group)
return self._amode
@property
def bcbtti(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_bcbtti'):
from .Bcbtti import BcbttiCls
self._bcbtti = BcbttiCls(self._core, self._cmd_group)
return self._bcbtti
@property
def bpayload(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_bpayload'):
from .Bpayload import BpayloadCls
self._bpayload = BpayloadCls(self._core, self._cmd_group)
return self._bpayload
@property
def clength(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_clength'):
from .Clength import ClengthCls
self._clength = ClengthCls(self._core, self._cmd_group)
return self._clength
@property
def crate(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_crate'):
from .Crate import CrateCls
self._crate = CrateCls(self._core, self._cmd_group)
return self._crate
@property
def data(self):
"""
| Commands in total: 3
| Subgroups: 2
| Direct child commands: 1
"""
if not hasattr(self, '_data'):
from .Data import DataCls
self._data = DataCls(self._core, self._cmd_group)
return self._data
@property
def harq(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_harq'):
from .Harq import HarqCls
self._harq = HarqCls(self._core, self._cmd_group)
return self._harq
@property
def hscCode(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_hscCode'):
from .HscCode import HscCodeCls
self._hscCode = HscCodeCls(self._core, self._cmd_group)
return self._hscCode
@property
def modulation(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_modulation'):
from .Modulation import ModulationCls
self._modulation = ModulationCls(self._core, self._cmd_group)
return self._modulation
@property
def naiBitrate(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_naiBitrate'):
from .NaiBitrate import NaiBitrateCls
self._naiBitrate = NaiBitrateCls(self._core, self._cmd_group)
return self._naiBitrate
@property
def predefined(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_predefined'):
from .Predefined import PredefinedCls
self._predefined = PredefinedCls(self._core, self._cmd_group)
return self._predefined
@property
def pwPattern(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_pwPattern'):
from .PwPattern import PwPatternCls
self._pwPattern = PwPatternCls(self._core, self._cmd_group)
return self._pwPattern
@property
def rvpSequence(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_rvpSequence'):
from .RvpSequence import RvpSequenceCls
self._rvpSequence = RvpSequenceCls(self._core, self._cmd_group)
return self._rvpSequence
@property
def rvParameter(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_rvParameter'):
from .RvParameter import RvParameterCls
self._rvParameter = RvParameterCls(self._core, self._cmd_group)
return self._rvParameter
@property
def rvState(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_rvState'):
from .RvState import RvStateCls
self._rvState = RvStateCls(self._core, self._cmd_group)
return self._rvState
@property
def s64Qam(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_s64Qam'):
from .S64Qam import S64QamCls
self._s64Qam = S64QamCls(self._core, self._cmd_group)
return self._s64Qam
@property
def scCode(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_scCode'):
from .ScCode import ScCodeCls
self._scCode = ScCodeCls(self._core, self._cmd_group)
return self._scCode
@property
def seed(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_seed'):
from .Seed import SeedCls
self._seed = SeedCls(self._core, self._cmd_group)
return self._seed
@property
def slength(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_slength'):
from .Slength import SlengthCls
self._slength = SlengthCls(self._core, self._cmd_group)
return self._slength
@property
def spattern(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_spattern'):
from .Spattern import SpatternCls
self._spattern = SpatternCls(self._core, self._cmd_group)
return self._spattern
@property
def staPattern(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_staPattern'):
from .StaPattern import StaPatternCls
self._staPattern = StaPatternCls(self._core, self._cmd_group)
return self._staPattern
@property
def tbs(self):
"""
| Commands in total: 3
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_tbs'):
from .Tbs import TbsCls
self._tbs = TbsCls(self._core, self._cmd_group)
return self._tbs
@property
def tpower(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_tpower'):
from .Tpower import TpowerCls
self._tpower = TpowerCls(self._core, self._cmd_group)
return self._tpower
@property
def typePy(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_typePy'):
from .TypePy import TypePyCls
self._typePy = TypePyCls(self._core, self._cmd_group)
return self._typePy
@property
def ueCategory(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_ueCategory'):
from .UeCategory import UeCategoryCls
self._ueCategory = UeCategoryCls(self._core, self._cmd_group)
return self._ueCategory
@property
def ueId(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_ueId'):
from .UeId import UeIdCls
self._ueId = UeIdCls(self._core, self._cmd_group)
return self._ueId
@property
def vibSize(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_vibSize'):
from .VibSize import VibSizeCls
self._vibSize = VibSizeCls(self._core, self._cmd_group)
return self._vibSize
[docs]
def set(self, hset: int, baseStation=repcap.BaseStation.Default, channelNull=repcap.ChannelNull.Default) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:BSTation<ST>:CHANnel<CH0>:HSDPa:HSET`` \n
Snippet: ``driver.source.bb.w3Gpp.bstation.channel.hsdpa.hset.set(hset = 1, baseStation = repcap.BaseStation.Default, channelNull = repcap.ChannelNull.Default)`` \n
No help available
:param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation')
:param channelNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Channel')
"""
param = Conversions.decimal_value_to_str(hset)
baseStation_cmd_val = self._cmd_group.get_repcap_cmd_value(baseStation, repcap.BaseStation)
channelNull_cmd_val = self._cmd_group.get_repcap_cmd_value(channelNull, repcap.ChannelNull)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:BSTation{baseStation_cmd_val}:CHANnel{channelNull_cmd_val}:HSDPa:HSET {param}')
[docs]
def get(self, baseStation=repcap.BaseStation.Default, channelNull=repcap.ChannelNull.Default) -> int:
"""
``[SOURce<HW>]:BB:W3GPp:BSTation<ST>:CHANnel<CH0>:HSDPa:HSET`` \n
Snippet: ``value: int = driver.source.bb.w3Gpp.bstation.channel.hsdpa.hset.get(baseStation = repcap.BaseStation.Default, channelNull = repcap.ChannelNull.Default)`` \n
No help available
:param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation')
:param channelNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Channel')
"""
baseStation_cmd_val = self._cmd_group.get_repcap_cmd_value(baseStation, repcap.BaseStation)
channelNull_cmd_val = self._cmd_group.get_repcap_cmd_value(channelNull, repcap.ChannelNull)
response = self._core.io.query_str(f'SOURce<HwInstance>:BB:W3GPp:BSTation{baseStation_cmd_val}:CHANnel{channelNull_cmd_val}:HSDPa:HSET?')
return Conversions.str_to_int(response)
[docs]
def preset(self, baseStation=repcap.BaseStation.Default) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:BSTation<ST>:CHANnel:HSDPa:HSET:PRESet`` \n
Snippet: ``driver.source.bb.w3Gpp.bstation.channel.hsdpa.hset.preset(baseStation = repcap.BaseStation.Default)`` \n
Sets the default settings of the channel table for the HSDPA H-Set mode. Channels 12 to 17 are preset for HSDPA H-Set 1.
:param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation')
"""
baseStation_cmd_val = self._cmd_group.get_repcap_cmd_value(baseStation, repcap.BaseStation)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:BSTation{baseStation_cmd_val}:CHANnel:HSDPa:HSET:PRESet')
[docs]
def preset_with_opc(self, baseStation=repcap.BaseStation.Default, opc_timeout_ms: int = -1) -> None:
baseStation_cmd_val = self._cmd_group.get_repcap_cmd_value(baseStation, repcap.BaseStation)
"""
``[SOURce<HW>]:BB:W3GPp:BSTation<ST>:CHANnel:HSDPa:HSET:PRESet`` \n
Snippet: ``driver.source.bb.w3Gpp.bstation.channel.hsdpa.hset.preset_with_opc(baseStation = repcap.BaseStation.Default)`` \n
Sets the default settings of the channel table for the HSDPA H-Set mode. Channels 12 to 17 are preset for HSDPA H-Set 1.
Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.
:param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation')
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:W3GPp:BSTation{baseStation_cmd_val}:CHANnel:HSDPa:HSET:PRESet', opc_timeout_ms)
def clone(self) -> 'HsetCls':
"""
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 = HsetCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group