Source code for RsSmw.Implementations.Source.Bb.Btooth.Econfig.Pconfig

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


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

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

	@property
	def antGain(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_antGain'):
			from .AntGain import AntGainCls
			self._antGain = AntGainCls(self._core, self._cmd_group)
		return self._antGain

[docs] def get_ant_number(self) -> int: """ ``[SOURce<HW>]:BB:BTOoth:ECONfig:PCONfig:ANTNumber`` \n Snippet: ``value: int = driver.source.bb.btooth.econfig.pconfig.get_ant_number()`` \n Specifies the number of antenas for angle of departure (AoD) direction finding method. You select up to four antennas, that are used for direction finding. :return: antenna_num: integer Range: 1 to 4 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:ECONfig:PCONfig:ANTNumber?') return Conversions.str_to_int(response)
def clone(self) -> 'PconfigCls': """ 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 = PconfigCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group