from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EvdoCls:
"""
| Commands in total: 156
| Subgroups: 13
| Direct child commands: 8
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("evdo", core, parent)
@property
def anetwork(self):
"""
| Commands in total: 14
| Subgroups: 3
| Direct child commands: 3
"""
if not hasattr(self, '_anetwork'):
from .Anetwork import AnetworkCls
self._anetwork = AnetworkCls(self._core, self._cmd_group)
return self._anetwork
@property
def clipping(self):
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
if not hasattr(self, '_clipping'):
from .Clipping import ClippingCls
self._clipping = ClippingCls(self._core, self._cmd_group)
return self._clipping
@property
def clock(self):
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
if not hasattr(self, '_clock'):
from .Clock import ClockCls
self._clock = ClockCls(self._core, self._cmd_group)
return self._clock
@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 down(self):
"""
| Commands in total: 7
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_down'):
from .Down import DownCls
self._down = DownCls(self._core, self._cmd_group)
return self._down
@property
def filterPy(self):
"""
| Commands in total: 13
| Subgroups: 3
| Direct child commands: 2
"""
if not hasattr(self, '_filterPy'):
from .FilterPy import FilterPyCls
self._filterPy = FilterPyCls(self._core, self._cmd_group)
return self._filterPy
@property
def iqswap(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_iqswap'):
from .Iqswap import IqswapCls
self._iqswap = IqswapCls(self._core, self._cmd_group)
return self._iqswap
@property
def setting(self):
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
if not hasattr(self, '_setting'):
from .Setting import SettingCls
self._setting = SettingCls(self._core, self._cmd_group)
return self._setting
@property
def terminal(self):
"""
| Commands in total: 52
| Subgroups: 15
| Direct child commands: 0
"""
if not hasattr(self, '_terminal'):
from .Terminal import TerminalCls
self._terminal = TerminalCls(self._core, self._cmd_group)
return self._terminal
@property
def trigger(self):
"""
| Commands in total: 20
| Subgroups: 6
| Direct child commands: 5
"""
if not hasattr(self, '_trigger'):
from .Trigger import TriggerCls
self._trigger = TriggerCls(self._core, self._cmd_group)
return self._trigger
@property
def up(self):
"""
| Commands in total: 7
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_up'):
from .Up import UpCls
self._up = UpCls(self._core, self._cmd_group)
return self._up
@property
def user(self):
"""
| Commands in total: 22
| Subgroups: 11
| Direct child commands: 0
"""
if not hasattr(self, '_user'):
from .User import UserCls
self._user = UserCls(self._core, self._cmd_group)
return self._user
@property
def waveform(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_waveform'):
from .Waveform import WaveformCls
self._waveform = WaveformCls(self._core, self._cmd_group)
return self._waveform
# noinspection PyTypeChecker
[docs]
def get_link(self) -> enums.LinkDir:
"""
``[SOURce<HW>]:BB:EVDO:LINK`` \n
Snippet: ``value: enums.LinkDir = driver.source.bb.evdo.get_link()`` \n
Defines the transmission direction.
:return: link: FORWard/DOWN | REVerse/UP
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:LINK?')
return Conversions.str_to_scalar_enum(response, enums.LinkDir)
[docs]
def set_link(self, link: enums.LinkDir) -> None:
"""
``[SOURce<HW>]:BB:EVDO:LINK`` \n
Snippet: ``driver.source.bb.evdo.set_link(link = enums.LinkDir.DOWN)`` \n
Defines the transmission direction.
:param link: FORWard/DOWN | REVerse/UP
"""
param = Conversions.enum_scalar_to_str(link, enums.LinkDir)
self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:LINK {param}')
[docs]
def get_pn_offset(self) -> int:
"""
``[SOURce<HW>]:BB:EVDO:PNOFfset`` \n
Snippet: ``value: int = driver.source.bb.evdo.get_pn_offset()`` \n
Sets the PN Offset of the 1xEV-DO signal.
:return: pn_offset: integer Range: 0 to 511
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:PNOFfset?')
return Conversions.str_to_int(response)
[docs]
def set_pn_offset(self, pn_offset: int) -> None:
"""
``[SOURce<HW>]:BB:EVDO:PNOFfset`` \n
Snippet: ``driver.source.bb.evdo.set_pn_offset(pn_offset = 1)`` \n
Sets the PN Offset of the 1xEV-DO signal.
:param pn_offset: integer Range: 0 to 511
"""
param = Conversions.decimal_value_to_str(pn_offset)
self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:PNOFfset {param}')
# noinspection PyTypeChecker
[docs]
def get_predefined(self) -> enums.EvdoPredSett:
"""
``[SOURce<HW>]:BB:EVDO:PREDefined`` \n
Snippet: ``value: enums.EvdoPredSett = driver.source.bb.evdo.get_predefined()`` \n
Sets the UL setting of Terminal 1 to one of the predefined configurations. The predefined settings are made according to
3GPP2 C.S0032-A to allow easy receiver testing.
Parameter / Description \n
- USER / There are no predefined settings
- ULS1DR9K6 / UL, Subtype 1, 9.6 kbps.
- ULS1DR19K2 / UL, Subtype 1, 19.2 kbps.
- ULS1DR38K4 / UL, Subtype 1, 38.4 kbps.
- ULS1DR76K8 / UL, Subtype 1, 76.8 kbps.
- ULS1DR153K6 / UL, Subtype 1, 153.6 kbps.
- ULS2PS128LL / UL, Subtype 2, 128 bits payload, Low Latency.
- ULS2PS256HC / UL, Subtype 2, 256 bits payload, High Capacity.
- ULS2PS256LL / UL, Subtype 2, 256 bits payload, Low Latency.
- ULS2PS512LL / UL, Subtype 2, 512 bits payload, Low Latency.
- ULS2PS768LL / UL, Subtype 2, 768 bits payload, Low Latency.
- ULS2PS1024LL / UL, Subtype 2, 1024 bits payload, Low Latency.
- ULS2PS1536LL / UL, Subtype 2, 1536 bits payload, Low Latency.
- ULS2PS2048LL / UL, Subtype 2, 2048 bits payload, Low Latency.
- ULS2PS3072LL / UL, Subtype 2, 3072 bits payload, Low Latency.
- ULS2PS4096LL / UL, Subtype 2, 4096 bits payload, Low Latency.
- ULS2PS6144LL / UL, Subtype 2, 6144 bits payload, Low Latency.
- ULS2PS8192LL / UL, Subtype 2, 8192 bits payload, Low Latency.
- ULS2PS12288LL / UL, Subtype 2, 12288 bits payload, Low Latency.
:return: predefined: USER | ULS1DR9K6 | ULS1DR19K2 | ULS1DR38K4 | ULS1DR76K8 | ULS1DR153K6 | ULS2PS128LL | ULS2PS256HC | ULS2PS256LL | ULS2PS512LL | ULS2PS768LL | ULS2PS1024LL | ULS2PS1536LL | ULS2PS2048LL | ULS2PS3072LL | ULS2PS4096LL | ULS2PS6144LL | ULS2PS8192LL | ULS2PS12288LL
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:PREDefined?')
return Conversions.str_to_scalar_enum(response, enums.EvdoPredSett)
[docs]
def set_predefined(self, predefined: enums.EvdoPredSett) -> None:
"""
``[SOURce<HW>]:BB:EVDO:PREDefined`` \n
Snippet: ``driver.source.bb.evdo.set_predefined(predefined = enums.EvdoPredSett.ULS1DR153K6)`` \n
Sets the UL setting of Terminal 1 to one of the predefined configurations. The predefined settings are made according to
3GPP2 C.S0032-A to allow easy receiver testing.
Parameter / Description \n
- USER / There are no predefined settings
- ULS1DR9K6 / UL, Subtype 1, 9.6 kbps.
- ULS1DR19K2 / UL, Subtype 1, 19.2 kbps.
- ULS1DR38K4 / UL, Subtype 1, 38.4 kbps.
- ULS1DR76K8 / UL, Subtype 1, 76.8 kbps.
- ULS1DR153K6 / UL, Subtype 1, 153.6 kbps.
- ULS2PS128LL / UL, Subtype 2, 128 bits payload, Low Latency.
- ULS2PS256HC / UL, Subtype 2, 256 bits payload, High Capacity.
- ULS2PS256LL / UL, Subtype 2, 256 bits payload, Low Latency.
- ULS2PS512LL / UL, Subtype 2, 512 bits payload, Low Latency.
- ULS2PS768LL / UL, Subtype 2, 768 bits payload, Low Latency.
- ULS2PS1024LL / UL, Subtype 2, 1024 bits payload, Low Latency.
- ULS2PS1536LL / UL, Subtype 2, 1536 bits payload, Low Latency.
- ULS2PS2048LL / UL, Subtype 2, 2048 bits payload, Low Latency.
- ULS2PS3072LL / UL, Subtype 2, 3072 bits payload, Low Latency.
- ULS2PS4096LL / UL, Subtype 2, 4096 bits payload, Low Latency.
- ULS2PS6144LL / UL, Subtype 2, 6144 bits payload, Low Latency.
- ULS2PS8192LL / UL, Subtype 2, 8192 bits payload, Low Latency.
- ULS2PS12288LL / UL, Subtype 2, 12288 bits payload, Low Latency.
:param predefined: USER | ULS1DR9K6 | ULS1DR19K2 | ULS1DR38K4 | ULS1DR76K8 | ULS1DR153K6 | ULS2PS128LL | ULS2PS256HC | ULS2PS256LL | ULS2PS512LL | ULS2PS768LL | ULS2PS1024LL | ULS2PS1536LL | ULS2PS2048LL | ULS2PS3072LL | ULS2PS4096LL | ULS2PS6144LL | ULS2PS8192LL | ULS2PS12288LL
"""
param = Conversions.enum_scalar_to_str(predefined, enums.EvdoPredSett)
self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:PREDefined {param}')
[docs]
def preset(self) -> None:
"""
``[SOURce<HW>]:BB:EVDO:PRESet`` \n
Snippet: ``driver.source.bb.evdo.preset()`` \n
Sets the parameters of the digital standard to their default values (``*RST`` values specified for the commands) .
Not affected is the state set with the command SOURce<hw>:BB:EVDO:STATe.
"""
self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:PRESet')
[docs]
def preset_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SOURce<HW>]:BB:EVDO:PRESet`` \n
Snippet: ``driver.source.bb.evdo.preset_with_opc()`` \n
Sets the parameters of the digital standard to their default values (``*RST`` values specified for the commands) .
Not affected is the state set with the command SOURce<hw>:BB:EVDO:STATe.
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 opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:EVDO:PRESet', opc_timeout_ms)
[docs]
def get_slength(self) -> int:
"""
``[SOURce<HW>]:BB:EVDO:SLENgth`` \n
Snippet: ``value: int = driver.source.bb.evdo.get_slength()`` \n
(For reverse link mode only) Sets the sequence length of the arbitrary waveform component of the 1XEV-DO signal in number
of frames. This component is calculated in advance and output in the arbitrary waveform generator. It is added to the
real time signal components. The number of chips is determined from this sequence length. One slot of 1.67ms duration
equals 2048 chips.
:return: slength: integer Range: 4 to dynamic
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:SLENgth?')
return Conversions.str_to_int(response)
[docs]
def set_slength(self, slength: int) -> None:
"""
``[SOURce<HW>]:BB:EVDO:SLENgth`` \n
Snippet: ``driver.source.bb.evdo.set_slength(slength = 1)`` \n
(For reverse link mode only) Sets the sequence length of the arbitrary waveform component of the 1XEV-DO signal in number
of frames. This component is calculated in advance and output in the arbitrary waveform generator. It is added to the
real time signal components. The number of chips is determined from this sequence length. One slot of 1.67ms duration
equals 2048 chips.
:param slength: integer Range: 4 to dynamic
"""
param = Conversions.decimal_value_to_str(slength)
self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:SLENgth {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:EVDO:STATe`` \n
Snippet: ``value: bool = driver.source.bb.evdo.get_state()`` \n
Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path.
:return: state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``[SOURce<HW>]:BB:EVDO:STATe`` \n
Snippet: ``driver.source.bb.evdo.set_state(state = False)`` \n
Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path.
:param state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:STATe {param}')
[docs]
def get_stime(self) -> int:
"""
``[SOURce<HW>]:BB:EVDO:STIMe`` \n
Snippet: ``value: int = driver.source.bb.evdo.get_stime()`` \n
Sets the System Time value of the 1xEV-DO signal and the base station. The System Time value is expressed in units of 1.
67 ms intervals (80 ms/ 48) . Note: In uplink, the value selected for system time must be multiple of 16.
:return: stime: integer Range: 0 to 2199023255551
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:STIMe?')
return Conversions.str_to_int(response)
[docs]
def set_stime(self, stime: int) -> None:
"""
``[SOURce<HW>]:BB:EVDO:STIMe`` \n
Snippet: ``driver.source.bb.evdo.set_stime(stime = 1)`` \n
Sets the System Time value of the 1xEV-DO signal and the base station. The System Time value is expressed in units of 1.
67 ms intervals (80 ms/ 48) . Note: In uplink, the value selected for system time must be multiple of 16.
:param stime: integer Range: 0 to 2199023255551
"""
param = Conversions.decimal_value_to_str(stime)
self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:STIMe {param}')
[docs]
def get_version(self) -> str:
"""
``[SOURce<HW>]:BB:EVDO:VERSion`` \n
Snippet: ``value: str = driver.source.bb.evdo.get_version()`` \n
Queries the version of the 1xEV-DO standard underlying the definitions
:return: version: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:VERSion?')
return trim_str_response(response)
def clone(self) -> 'EvdoCls':
"""
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 = EvdoCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group