Source code for RsSmw.Implementations.Source.Bb.W3Gpp.Mstation

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.RepeatedCapability import RepeatedCapability
from ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MstationCls:
	"""
	| Commands in total: 262
	| Subgroups: 14
	| Direct child commands: 1

	Repeated Capability Setting:
	
	.. code-block:: python
	
			# Range: Nr1 .. Nr4 \n
			driver.source.bb.w3Gpp.mstation.repcap_mobileStation_set(repcap.MobileStation.Nr1)
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("mstation", core, parent)
		self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_mobileStation_get', 'repcap_mobileStation_set', repcap.MobileStation.Nr1)

	def repcap_mobileStation_set(self, mobileStation: repcap.MobileStation) -> None:
		"""
		Repeated Capability default value numeric suffix.
		This value is used, if you do not explicitely set it in the child set/get methods, or if you leave it to MobileStation.Default.
		Default value after init: MobileStation.Nr1
		"""
		self._cmd_group.set_repcap_enum_value(mobileStation)

	def repcap_mobileStation_get(self) -> repcap.MobileStation:
		"""
		Returns the current default repeated capability for the child set/get methods.
		"""
		# noinspection PyTypeChecker
		return self._cmd_group.get_repcap_enum_value()

	@property
	def additional(self):
		"""
		| Commands in total: 5
		| Subgroups: 3
		| Direct child commands: 2
		"""
		if not hasattr(self, '_additional'):
			from .Additional import AdditionalCls
			self._additional = AdditionalCls(self._core, self._cmd_group)
		return self._additional

	@property
	def channel(self):
		"""
		| Commands in total: 5
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_channel'):
			from .Channel import ChannelCls
			self._channel = ChannelCls(self._core, self._cmd_group)
		return self._channel

	@property
	def cmode(self):
		"""
		| Commands in total: 8
		| Subgroups: 5
		| Direct child commands: 0
		"""
		if not hasattr(self, '_cmode'):
			from .Cmode import CmodeCls
			self._cmode = CmodeCls(self._core, self._cmd_group)
		return self._cmode

	@property
	def dpcch(self):
		"""
		| Commands in total: 60
		| Subgroups: 8
		| Direct child commands: 0
		"""
		if not hasattr(self, '_dpcch'):
			from .Dpcch import DpcchCls
			self._dpcch = DpcchCls(self._core, self._cmd_group)
		return self._dpcch

	@property
	def dpdch(self):
		"""
		| Commands in total: 4
		| Subgroups: 4
		| Direct child commands: 0
		"""
		if not hasattr(self, '_dpdch'):
			from .Dpdch import DpdchCls
			self._dpdch = DpdchCls(self._core, self._cmd_group)
		return self._dpdch

	@property
	def enhanced(self):
		"""
		| Commands in total: 41
		| Subgroups: 3
		| Direct child commands: 0
		"""
		if not hasattr(self, '_enhanced'):
			from .Enhanced import EnhancedCls
			self._enhanced = EnhancedCls(self._core, self._cmd_group)
		return self._enhanced

	@property
	def mode(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_mode'):
			from .Mode import ModeCls
			self._mode = ModeCls(self._core, self._cmd_group)
		return self._mode

	@property
	def pcpch(self):
		"""
		| Commands in total: 30
		| Subgroups: 18
		| Direct child commands: 0
		"""
		if not hasattr(self, '_pcpch'):
			from .Pcpch import PcpchCls
			self._pcpch = PcpchCls(self._core, self._cmd_group)
		return self._pcpch

	@property
	def prach(self):
		"""
		| Commands in total: 25
		| Subgroups: 15
		| Direct child commands: 0
		"""
		if not hasattr(self, '_prach'):
			from .Prach import PrachCls
			self._prach = PrachCls(self._core, self._cmd_group)
		return self._prach

	@property
	def scode(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_scode'):
			from .Scode import ScodeCls
			self._scode = ScodeCls(self._core, self._cmd_group)
		return self._scode

	@property
	def state(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_state'):
			from .State import StateCls
			self._state = StateCls(self._core, self._cmd_group)
		return self._state

	@property
	def tdelay(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_tdelay'):
			from .Tdelay import TdelayCls
			self._tdelay = TdelayCls(self._core, self._cmd_group)
		return self._tdelay

	@property
	def udtx(self):
		"""
		| Commands in total: 18
		| Subgroups: 6
		| Direct child commands: 6
		"""
		if not hasattr(self, '_udtx'):
			from .Udtx import UdtxCls
			self._udtx = UdtxCls(self._core, self._cmd_group)
		return self._udtx

	@property
	def hsupa(self):
		"""
		| Commands in total: 60
		| Subgroups: 4
		| Direct child commands: 0
		"""
		if not hasattr(self, '_hsupa'):
			from .Hsupa import HsupaCls
			self._hsupa = HsupaCls(self._core, self._cmd_group)
		return self._hsupa

[docs] def preset(self) -> None: """ ``[SOURce<HW>]:BB:W3GPp:MSTation:PRESet`` \n Snippet: ``driver.source.bb.w3Gpp.mstation.preset()`` \n The command produces a standardized default for all the user equipment. The settings correspond to the ``*RST`` values specified for the commands. All user equipment settings are preset. """ self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:PRESet')
[docs] def preset_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``[SOURce<HW>]:BB:W3GPp:MSTation:PRESet`` \n Snippet: ``driver.source.bb.w3Gpp.mstation.preset_with_opc()`` \n The command produces a standardized default for all the user equipment. The settings correspond to the ``*RST`` values specified for the commands. All user equipment settings are preset. Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:W3GPp:MSTation:PRESet', opc_timeout_ms)
def clone(self) -> 'MstationCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = MstationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group