Source code for RsSmw.Implementations.Source.Bb.Wlad.Pconfig.Mac.Scontrol.Fragment

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 FragmentCls:
	"""
	| Commands in total: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

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

[docs] def get_increment(self) -> int: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:MAC:SCONtrol:FRAGment:INCRement`` \n Snippet: ``value: int = driver.source.bb.wlad.pconfig.mac.scontrol.fragment.get_increment()`` \n Sets the number of packets required to increment the counter of the fragment bits of the sequence control. :return: increment: integer Range: 0 to 1024 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:MAC:SCONtrol:FRAGment:INCRement?') return Conversions.str_to_int(response)
[docs] def set_increment(self, increment: int) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:MAC:SCONtrol:FRAGment:INCRement`` \n Snippet: ``driver.source.bb.wlad.pconfig.mac.scontrol.fragment.set_increment(increment = 1)`` \n Sets the number of packets required to increment the counter of the fragment bits of the sequence control. :param increment: integer Range: 0 to 1024 """ param = Conversions.decimal_value_to_str(increment) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:MAC:SCONtrol:FRAGment:INCRement {param}')
[docs] def get_start(self) -> str: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:MAC:SCONtrol:FRAGment:STARt`` \n Snippet: ``value: str = driver.source.bb.wlad.pconfig.mac.scontrol.fragment.get_start()`` \n Sets the start number of the fragment bits of the sequence control. :return: start: 4 bits """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:MAC:SCONtrol:FRAGment:STARt?') return trim_str_response(response)
[docs] def set_start(self, start: str) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:MAC:SCONtrol:FRAGment:STARt`` \n Snippet: ``driver.source.bb.wlad.pconfig.mac.scontrol.fragment.set_start(start = rawAbc)`` \n Sets the start number of the fragment bits of the sequence control. :param start: 4 bits """ param = Conversions.value_to_str(start) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:MAC:SCONtrol:FRAGment:STARt {param}')