from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class RandCls:
"""Rand commands group definition. 3 total commands, 0 Subgroups, 3 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("rand", core, parent)
# noinspection PyTypeChecker
[docs] def get_rmax(self) -> enums.EutraNbiotRmAx:
"""SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:RAND:RMAX \n
Snippet: value: enums.EutraNbiotRmAx = driver.source.bb.eutra.downlink.niot.rand.get_rmax() \n
Sets the maximum number NPDCCH is repeated RMax (random access) . \n
:return: random_rmax: R1| R2| R4| R8| R16| R32| R64| R128| R256| R512| R1024| R2048
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:RAND:RMAX?')
return Conversions.str_to_scalar_enum(response, enums.EutraNbiotRmAx)
[docs] def set_rmax(self, random_rmax: enums.EutraNbiotRmAx) -> None:
"""SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:RAND:RMAX \n
Snippet: driver.source.bb.eutra.downlink.niot.rand.set_rmax(random_rmax = enums.EutraNbiotRmAx.R1) \n
Sets the maximum number NPDCCH is repeated RMax (random access) . \n
:param random_rmax: R1| R2| R4| R8| R16| R32| R64| R128| R256| R512| R1024| R2048
"""
param = Conversions.enum_scalar_to_str(random_rmax, enums.EutraNbiotRmAx)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:RAND:RMAX {param}')
# noinspection PyTypeChecker
[docs] def get_ss_offset(self) -> enums.EutraNbiotSearchSpaceOffset:
"""SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:RAND:SSOFfset \n
Snippet: value: enums.EutraNbiotSearchSpaceOffset = driver.source.bb.eutra.downlink.niot.rand.get_ss_offset() \n
Sets the serach space offset (alphaoffset) . \n
:return: random_offset: O0| O1_8| O1_4| O3_8
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:RAND:SSOFfset?')
return Conversions.str_to_scalar_enum(response, enums.EutraNbiotSearchSpaceOffset)
[docs] def set_ss_offset(self, random_offset: enums.EutraNbiotSearchSpaceOffset) -> None:
"""SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:RAND:SSOFfset \n
Snippet: driver.source.bb.eutra.downlink.niot.rand.set_ss_offset(random_offset = enums.EutraNbiotSearchSpaceOffset.O0) \n
Sets the serach space offset (alphaoffset) . \n
:param random_offset: O0| O1_8| O1_4| O3_8
"""
param = Conversions.enum_scalar_to_str(random_offset, enums.EutraNbiotSearchSpaceOffset)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:RAND:SSOFfset {param}')
# noinspection PyTypeChecker
[docs] def get_sts_frame(self) -> enums.EutraNbiotSearchSpaceStSubFrame:
"""SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:RAND:STSFrame \n
Snippet: value: enums.EutraNbiotSearchSpaceStSubFrame = driver.source.bb.eutra.downlink.niot.rand.get_sts_frame() \n
Sets the start SF for the random access common search space. \n
:return: start_sf: S1_5| S2| S4| S8| S16| S32| S48| S64
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:RAND:STSFrame?')
return Conversions.str_to_scalar_enum(response, enums.EutraNbiotSearchSpaceStSubFrame)
[docs] def set_sts_frame(self, start_sf: enums.EutraNbiotSearchSpaceStSubFrame) -> None:
"""SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:RAND:STSFrame \n
Snippet: driver.source.bb.eutra.downlink.niot.rand.set_sts_frame(start_sf = enums.EutraNbiotSearchSpaceStSubFrame.S1_5) \n
Sets the start SF for the random access common search space. \n
:param start_sf: S1_5| S2| S4| S8| S16| S32| S48| S64
"""
param = Conversions.enum_scalar_to_str(start_sf, enums.EutraNbiotSearchSpaceStSubFrame)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:RAND:STSFrame {param}')