Source code for RsSmw.Implementations.Source.Bb.Wlad.Pconfig

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PconfigCls:
	"""
	| Commands in total: 55
	| Subgroups: 11
	| Direct child commands: 9
	"""

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

	@property
	def btRequest(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_btRequest'):
			from .BtRequest import BtRequestCls
			self._btRequest = BtRequestCls(self._core, self._cmd_group)
		return self._btRequest

	@property
	def coding(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_coding'):
			from .Coding import CodingCls
			self._coding = CodingCls(self._core, self._cmd_group)
		return self._coding

	@property
	def data(self):
		"""
		| Commands in total: 6
		| Subgroups: 1
		| Direct child commands: 5
		"""
		if not hasattr(self, '_data'):
			from .Data import DataCls
			self._data = DataCls(self._core, self._cmd_group)
		return self._data

	@property
	def dindicator(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_dindicator'):
			from .Dindicator import DindicatorCls
			self._dindicator = DindicatorCls(self._core, self._cmd_group)
		return self._dindicator

	@property
	def gpi(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_gpi'):
			from .Gpi import GpiCls
			self._gpi = GpiCls(self._core, self._cmd_group)
		return self._gpi

	@property
	def mac(self):
		"""
		| Commands in total: 25
		| Subgroups: 5
		| Direct child commands: 2
		"""
		if not hasattr(self, '_mac'):
			from .Mac import MacCls
			self._mac = MacCls(self._core, self._cmd_group)
		return self._mac

	@property
	def mpdu(self):
		"""
		| Commands in total: 5
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_mpdu'):
			from .Mpdu import MpduCls
			self._mpdu = MpduCls(self._core, self._cmd_group)
		return self._mpdu

	@property
	def preamble(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_preamble'):
			from .Preamble import PreambleCls
			self._preamble = PreambleCls(self._core, self._cmd_group)
		return self._preamble

	@property
	def scrambler(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_scrambler'):
			from .Scrambler import ScramblerCls
			self._scrambler = ScramblerCls(self._core, self._cmd_group)
		return self._scrambler

	@property
	def taRound(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_taRound'):
			from .TaRound import TaRoundCls
			self._taRound = TaRoundCls(self._core, self._cmd_group)
		return self._taRound

	@property
	def tdWindowing(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_tdWindowing'):
			from .TdWindowing import TdWindowingCls
			self._tdWindowing = TdWindowingCls(self._core, self._cmd_group)
		return self._tdWindowing

[docs] def get_em_indication(self) -> bool: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:EMINdication`` \n Snippet: ``value: bool = driver.source.bb.wlad.pconfig.get_em_indication()`` \n The value of this field indicates the length of the PSDU. :return: ext_sc_mcs_ind: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:EMINdication?') return Conversions.str_to_bool(response)
[docs] def set_em_indication(self, ext_sc_mcs_ind: bool) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:EMINdication`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_em_indication(ext_sc_mcs_ind = False)`` \n The value of this field indicates the length of the PSDU. :param ext_sc_mcs_ind: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(ext_sc_mcs_ind) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:EMINdication {param}')
# noinspection PyTypeChecker
[docs] def get_lrssi(self) -> enums.WlanadLastRssi: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:LRSSi`` \n Snippet: ``value: enums.WlanadLastRssi = driver.source.bb.wlad.pconfig.get_lrssi()`` \n Sets the last RSSI. :return: lrssi: NA | M68 | M67 | M65 | M63 | M61 | M59 | M57 | M55 | M53 | M51 | M49 | M47 | M45 | M43 | M42 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:LRSSi?') return Conversions.str_to_scalar_enum(response, enums.WlanadLastRssi)
[docs] def set_lrssi(self, lrssi: enums.WlanadLastRssi) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:LRSSi`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_lrssi(lrssi = enums.WlanadLastRssi.M42)`` \n Sets the last RSSI. :param lrssi: NA | M68 | M67 | M65 | M63 | M61 | M59 | M57 | M55 | M53 | M51 | M49 | M47 | M45 | M43 | M42 """ param = Conversions.enum_scalar_to_str(lrssi, enums.WlanadLastRssi) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:LRSSi {param}')
# noinspection PyTypeChecker
[docs] def get_mcs(self) -> enums.WlannMcs: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:MCS`` \n Snippet: ``value: enums.WlannMcs = driver.source.bb.wlad.pconfig.get_mcs()`` \n Selects the modulation and coding scheme for all spatial streams. :return: mcs: MCS0 | MCS1 | MCS2 | MCS3 | MCS4 | MCS5 | MCS6 | MCS7 | MCS8 | MCS9 | MCS10 | MCS11 | MCS12 | MCS13 | MCS14 | MCS15 | MCS16 | MCS17 | MCS18 | MCS19 | MCS20 | MCS21 | MCS22 | MCS23 | MCS24 | MCS25 | MCS26 | MCS27 | MCS28 | MCS29 | MCS30 | MCS31 | MCS91 | MCS121 | MCS122 | MCS125 | MCS123 | MCS124 | MCS126 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:MCS?') return Conversions.str_to_scalar_enum(response, enums.WlannMcs)
[docs] def set_mcs(self, mcs: enums.WlannMcs) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:MCS`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_mcs(mcs = enums.WlannMcs.MCS0)`` \n Selects the modulation and coding scheme for all spatial streams. :param mcs: MCS0 | MCS1 | MCS2 | MCS3 | MCS4 | MCS5 | MCS6 | MCS7 | MCS8 | MCS9 | MCS10 | MCS11 | MCS12 | MCS13 | MCS14 | MCS15 | MCS16 | MCS17 | MCS18 | MCS19 | MCS20 | MCS21 | MCS22 | MCS23 | MCS24 | MCS25 | MCS26 | MCS27 | MCS28 | MCS29 | MCS30 | MCS31 | MCS91 | MCS121 | MCS122 | MCS125 | MCS123 | MCS124 | MCS126 """ param = Conversions.enum_scalar_to_str(mcs, enums.WlannMcs) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:MCS {param}')
# noinspection PyTypeChecker
[docs] def get_mtype(self) -> enums.WlanadModType: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:MTYPe`` \n Snippet: ``value: enums.WlanadModType = driver.source.bb.wlad.pconfig.get_mtype()`` \n Sets the modulation type. :return: mtype: DBPSK | SQPSK | QPSK | QAM16 | QAM64 | P2BPSK | P2QPSK | P2QAM16 | P2QAM64 | P2PSK8 | P2NUC64 | DCMP2BPSK """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:MTYPe?') return Conversions.str_to_scalar_enum(response, enums.WlanadModType)
[docs] def set_mtype(self, mtype: enums.WlanadModType) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:MTYPe`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_mtype(mtype = enums.WlanadModType.DBPSK)`` \n Sets the modulation type. :param mtype: DBPSK | SQPSK | QPSK | QAM16 | QAM64 | P2BPSK | P2QPSK | P2QAM16 | P2QAM64 | P2PSK8 | P2NUC64 | DCMP2BPSK """ param = Conversions.enum_scalar_to_str(mtype, enums.WlanadModType) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:MTYPe {param}')
# noinspection PyTypeChecker
[docs] def get_ptype(self) -> enums.WlanadPackType: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:PTYPe`` \n Snippet: ``value: enums.WlanadPackType = driver.source.bb.wlad.pconfig.get_ptype()`` \n Selects the packet type. Selectable packet types depend on the PHY format: \n - DMG format: Packet type is a receive training packet (TRN-R) or transmit training packet (TRN-T) . - EDMG format: Packet type is a receive training packet (TRN-R) , transmit training packet (TRN-T) or receive/transmit training packet (TRN-R/T) . :return: ptype: TRNR | TRNT | TRNTR TRNR Receive training packet. The data part of a packet is followed by one or more TRN-R subfields; or a packet is requesting that a TRN-R subfield is added to a future response packet. TRNT Transmit training packet. The data part of packet is followed by one or more TRN-T subfields. TRNTR Receive/transmit training packet. The data part of packet is followed by one or more TRN-R/T subfields. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:PTYPe?') return Conversions.str_to_scalar_enum(response, enums.WlanadPackType)
[docs] def set_ptype(self, ptype: enums.WlanadPackType) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:PTYPe`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_ptype(ptype = enums.WlanadPackType.TRNR)`` \n Selects the packet type. Selectable packet types depend on the PHY format: \n - DMG format: Packet type is a receive training packet (TRN-R) or transmit training packet (TRN-T) . - EDMG format: Packet type is a receive training packet (TRN-R) , transmit training packet (TRN-T) or receive/transmit training packet (TRN-R/T) . :param ptype: TRNR | TRNT | TRNTR TRNR Receive training packet. The data part of a packet is followed by one or more TRN-R subfields; or a packet is requesting that a TRN-R subfield is added to a future response packet. TRNT Transmit training packet. The data part of packet is followed by one or more TRN-T subfields. TRNTR Receive/transmit training packet. The data part of packet is followed by one or more TRN-R/T subfields. """ param = Conversions.enum_scalar_to_str(ptype, enums.WlanadPackType) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:PTYPe {param}')
[docs] def get_repetition(self) -> int: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:REPetition`` \n Snippet: ``value: int = driver.source.bb.wlad.pconfig.get_repetition()`` \n Sets the repetition number. :return: rep: integer Range: 1 to 2 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:REPetition?') return Conversions.str_to_int(response)
[docs] def set_repetition(self, rep: int) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:REPetition`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_repetition(rep = 1)`` \n Sets the repetition number. :param rep: integer Range: 1 to 2 """ param = Conversions.decimal_value_to_str(rep) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:REPetition {param}')
[docs] def get_tlength(self) -> int: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:TLENgth`` \n Snippet: ``value: int = driver.source.bb.wlad.pconfig.get_tlength()`` \n Sets the training length. :return: tlen: integer Range: 0 to 16 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:TLENgth?') return Conversions.str_to_int(response)
[docs] def set_tlength(self, tlen: int) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:TLENgth`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_tlength(tlen = 1)`` \n Sets the training length. :param tlen: integer Range: 0 to 16 """ param = Conversions.decimal_value_to_str(tlen) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:TLENgth {param}')
# noinspection PyTypeChecker
[docs] def get_tp_type(self) -> enums.WlanadTonePairType: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:TPTYpe`` \n Snippet: ``value: enums.WlanadTonePairType = driver.source.bb.wlad.pconfig.get_tp_type()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:TPTYpe?') return Conversions.str_to_scalar_enum(response, enums.WlanadTonePairType)
[docs] def set_tp_type(self, tp_type: enums.WlanadTonePairType) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:TPTYpe`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_tp_type(tp_type = enums.WlanadTonePairType.DYNamic)`` \n No help available """ param = Conversions.enum_scalar_to_str(tp_type, enums.WlanadTonePairType) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:TPTYpe {param}')
[docs] def get_ttime(self) -> float: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:TTIMe`` \n Snippet: ``value: float = driver.source.bb.wlad.pconfig.get_ttime()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:TTIMe?') return Conversions.str_to_float(response)
[docs] def set_ttime(self, ttime: float) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:TTIMe`` \n Snippet: ``driver.source.bb.wlad.pconfig.set_ttime(ttime = 1.0)`` \n No help available """ param = Conversions.decimal_value_to_str(ttime) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:TTIMe {param}')
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