Source code for RsSmw.Implementations.Source.Bb.V5G.Uplink.Ue.Cell.Xpusch.Pattern

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


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

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

[docs] def set(self, pattern: str, userEquipment=repcap.UserEquipment.Default, cellNull=repcap.CellNull.Default) -> None: """ ``[SOURce<HW>]:BB:V5G:UL:UE<ST>:[CELL<CCIDX>]:XPUSch:PATTern`` \n Snippet: ``driver.source.bb.v5G.uplink.ue.cell.xpusch.pattern.set(pattern = rawAbc, userEquipment = repcap.UserEquipment.Default, cellNull = repcap.CellNull.Default)`` \n Sets the bit pattern for the voice data. The setting is relevant for method ``RsSmw.source.bb.v5G.uplink.ue.cell.xpusch.data.set()`` PATTern :param pattern: 64 bit :param userEquipment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Ue') :param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell') """ param = Conversions.value_to_str(pattern) userEquipment_cmd_val = self._cmd_group.get_repcap_cmd_value(userEquipment, repcap.UserEquipment) cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:UE{userEquipment_cmd_val}:CELL{cellNull_cmd_val}:XPUSch:PATTern {param}')
[docs] def get(self, userEquipment=repcap.UserEquipment.Default, cellNull=repcap.CellNull.Default) -> str: """ ``[SOURce<HW>]:BB:V5G:UL:UE<ST>:[CELL<CCIDX>]:XPUSch:PATTern`` \n Snippet: ``value: str = driver.source.bb.v5G.uplink.ue.cell.xpusch.pattern.get(userEquipment = repcap.UserEquipment.Default, cellNull = repcap.CellNull.Default)`` \n Sets the bit pattern for the voice data. The setting is relevant for method ``RsSmw.source.bb.v5G.uplink.ue.cell.xpusch.data.set()`` PATTern :param userEquipment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Ue') :param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell') :return: pattern: 64 bit """ userEquipment_cmd_val = self._cmd_group.get_repcap_cmd_value(userEquipment, repcap.UserEquipment) cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:V5G:UL:UE{userEquipment_cmd_val}:CELL{cellNull_cmd_val}:XPUSch:PATTern?') return trim_str_response(response)