Source code for RsSmw.Implementations.Source.Bb.V5G.Uplink.Pusch

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PuschCls:
	"""
	| Commands in total: 5
	| Subgroups: 0
	| Direct child commands: 5
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("pusch", core, parent)

	# noinspection PyTypeChecker
[docs] def get_fh_mode(self) -> enums.UlFreqHopMode: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:FHMode`` \n Snippet: ``value: enums.UlFreqHopMode = driver.source.bb.v5G.uplink.pusch.get_fh_mode()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:PUSCh:FHMode?') return Conversions.str_to_scalar_enum(response, enums.UlFreqHopMode)
[docs] def set_fh_mode(self, freq_hopping_mode: enums.UlFreqHopMode) -> None: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:FHMode`` \n Snippet: ``driver.source.bb.v5G.uplink.pusch.set_fh_mode(freq_hopping_mode = enums.UlFreqHopMode.INTer)`` \n No help available """ param = Conversions.enum_scalar_to_str(freq_hopping_mode, enums.UlFreqHopMode) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:PUSCh:FHMode {param}')
[docs] def get_fh_offset(self) -> int: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:FHOFfset`` \n Snippet: ``value: int = driver.source.bb.v5G.uplink.pusch.get_fh_offset()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:PUSCh:FHOFfset?') return Conversions.str_to_int(response)
[docs] def set_fh_offset(self, fhopp_offset: int) -> None: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:FHOFfset`` \n Snippet: ``driver.source.bb.v5G.uplink.pusch.set_fh_offset(fhopp_offset = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(fhopp_offset) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:PUSCh:FHOFfset {param}')
[docs] def get_nhoffset(self) -> int: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:NHOFfset`` \n Snippet: ``value: int = driver.source.bb.v5G.uplink.pusch.get_nhoffset()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:PUSCh:NHOFfset?') return Conversions.str_to_int(response)
[docs] def set_nhoffset(self, nb_hopping_offset: int) -> None: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:NHOFfset`` \n Snippet: ``driver.source.bb.v5G.uplink.pusch.set_nhoffset(nb_hopping_offset = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(nb_hopping_offset) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:PUSCh:NHOFfset {param}')
[docs] def get_nhopping(self) -> bool: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:NHOPping`` \n Snippet: ``value: bool = driver.source.bb.v5G.uplink.pusch.get_nhopping()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:PUSCh:NHOPping?') return Conversions.str_to_bool(response)
[docs] def set_nhopping(self, nb_hopping: bool) -> None: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:NHOPping`` \n Snippet: ``driver.source.bb.v5G.uplink.pusch.set_nhopping(nb_hopping = False)`` \n No help available """ param = Conversions.bool_to_str(nb_hopping) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:PUSCh:NHOPping {param}')
[docs] def get_nosm(self) -> int: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:NOSM`` \n Snippet: ``value: int = driver.source.bb.v5G.uplink.pusch.get_nosm()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:PUSCh:NOSM?') return Conversions.str_to_int(response)
[docs] def set_nosm(self, sub_band_count: int) -> None: """ ``[SOURce<HW>]:BB:V5G:UL:PUSCh:NOSM`` \n Snippet: ``driver.source.bb.v5G.uplink.pusch.set_nosm(sub_band_count = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(sub_band_count) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:PUSCh:NOSM {param}')