Source code for RsSmw.Implementations.Source.Bb.Nr5G.Tcw.Ws.Uci.Csi2

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........Internal.Utilities import trim_str_response


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

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

[docs] def get_pattern(self) -> str: """ ``[SOURce<HW>]:BB:NR5G:TCW:WS:UCI:CSI2:PATTern`` \n Snippet: ``value: str = driver.source.bb.nr5G.tcw.ws.uci.csi2.get_pattern()`` \n Defines the frequency and time domain of the CSI part 2 subcarrier location. :return: csi_2_pattern: Nr5gPUCCHUcidataPattLenMax bits """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:TCW:WS:UCI:CSI2:PATTern?') return trim_str_response(response)
[docs] def set_pattern(self, csi_2_pattern: str) -> None: """ ``[SOURce<HW>]:BB:NR5G:TCW:WS:UCI:CSI2:PATTern`` \n Snippet: ``driver.source.bb.nr5G.tcw.ws.uci.csi2.set_pattern(csi_2_pattern = rawAbc)`` \n Defines the frequency and time domain of the CSI part 2 subcarrier location. :param csi_2_pattern: Nr5gPUCCHUcidataPattLenMax bits """ param = Conversions.value_to_str(csi_2_pattern) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:TCW:WS:UCI:CSI2:PATTern {param}')