from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class PucchCls:
"""Pucch commands group definition. 10 total commands, 0 Subgroups, 10 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pucch", core, parent)
[docs] def get_de_shift(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:DESHift \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_de_shift() \n
Sets the delta shift parameter. \n
:return: delta_shift: integer Range: 1 to 3
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:DESHift?')
return Conversions.str_to_int(response)
[docs] def set_de_shift(self, delta_shift: int) -> None:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:DESHift \n
Snippet: driver.source.bb.eutra.uplink.pucch.set_de_shift(delta_shift = 1) \n
Sets the delta shift parameter. \n
:param delta_shift: integer Range: 1 to 3
"""
param = Conversions.decimal_value_to_str(delta_shift)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:DESHift {param}')
[docs] def get_n_1_cs(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N1CS \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_n_1_cs() \n
Sets the number of cyclic shifts used for PUCCH format 1/1a/1b in a resource block used for a combination of the formats
1/1a/1b and 2/2a/2b. \n
:return: n_1_cs: integer Range: 0 to dynamic
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N1CS?')
return Conversions.str_to_int(response)
[docs] def set_n_1_cs(self, n_1_cs: int) -> None:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N1CS \n
Snippet: driver.source.bb.eutra.uplink.pucch.set_n_1_cs(n_1_cs = 1) \n
Sets the number of cyclic shifts used for PUCCH format 1/1a/1b in a resource block used for a combination of the formats
1/1a/1b and 2/2a/2b. \n
:param n_1_cs: integer Range: 0 to dynamic
"""
param = Conversions.decimal_value_to_str(n_1_cs)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N1CS {param}')
[docs] def get_n_1_e_max(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N1EMax \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_n_1_e_max() \n
Queries the range of the possible PUCCH format 1/1a/1b transmissions from different users in one subframe and for
extended CP. \n
:return: n_1_e_max: integer Range: 0 to 110
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N1EMax?')
return Conversions.str_to_int(response)
[docs] def get_n_1_n_max(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N1NMax \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_n_1_n_max() \n
Queries the range of the possible PUCCH format 1/1a/1b transmissions from different users in one subframe and for normal
CP. \n
:return: n_1_norm_cp: integer Range: 0 to 110
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N1NMax?')
return Conversions.str_to_int(response)
[docs] def get_n_2_max(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N2Max \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_n_2_max() \n
Queries the range of possible number of PUCCH format 2/2a/2b transmissions from different users in one subframe. \n
:return: n_2_max: integer Range: 0 to 110
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N2Max?')
return Conversions.str_to_int(response)
[docs] def get_n_2_rb(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N2RB \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_n_2_rb() \n
Sets bandwidth in terms of resource blocks that are reserved for PUCCH formats 2/2a/2b transmission in each subframe. \n
:return: n_2_rb: integer Range: 0 to dynamic
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N2RB?')
return Conversions.str_to_int(response)
[docs] def set_n_2_rb(self, n_2_rb: int) -> None:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N2RB \n
Snippet: driver.source.bb.eutra.uplink.pucch.set_n_2_rb(n_2_rb = 1) \n
Sets bandwidth in terms of resource blocks that are reserved for PUCCH formats 2/2a/2b transmission in each subframe. \n
:param n_2_rb: integer Range: 0 to dynamic
"""
param = Conversions.decimal_value_to_str(n_2_rb)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N2RB {param}')
[docs] def get_n_3_max(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N3Max \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_n_3_max() \n
Queries the range of possible number of PUCCH format x transmissions from different users in one subframe. \n
:return: n_3_max: integer Range: 0 to 549
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N3Max?')
return Conversions.str_to_int(response)
[docs] def get_n_4_max(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N4Max \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_n_4_max() \n
Queries the range of possible number of PUCCH format x transmissions from different users in one subframe. \n
:return: n_4_max: integer Range: 0 to 549
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N4Max?')
return Conversions.str_to_int(response)
[docs] def get_n_5_max(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:N5Max \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_n_5_max() \n
Queries the range of possible number of PUCCH format x transmissions from different users in one subframe. \n
:return: n_5_max: integer Range: 0 to 549
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:N5Max?')
return Conversions.str_to_int(response)
[docs] def get_no_rb(self) -> int:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:NORB \n
Snippet: value: int = driver.source.bb.eutra.uplink.pucch.get_no_rb() \n
Sets the PUCCH region in terms of reserved resource blocks, at the edges of the channel bandwidth. \n
:return: rb_count: integer Range: 0 to 110
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:NORB?')
return Conversions.str_to_int(response)
[docs] def set_no_rb(self, rb_count: int) -> None:
"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PUCCh:NORB \n
Snippet: driver.source.bb.eutra.uplink.pucch.set_no_rb(rb_count = 1) \n
Sets the PUCCH region in terms of reserved resource blocks, at the edges of the channel bandwidth. \n
:param rb_count: integer Range: 0 to 110
"""
param = Conversions.decimal_value_to_str(rb_count)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PUCCh:NORB {param}')