Source code for RsSmw.Implementations.Source.Bb.Nr5G.Scheduling.Sfn

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:NR5G:SCHeduling:SFN:STATe`` \n Snippet: ``value: bool = driver.source.bb.nr5G.scheduling.sfn.get_state()`` \n Enables the full counting of the system frame number carried by the PBCH block from 0 to 1023, independent from the configured ARB 'Sequence Length'. If method ``RsSmw.source.bb.nr5G.node.cell.tmph.sfOffset.get()`` is set, the counting starts at the configured SFN offset value and restarts when the SFN offset value is reached again as follows: offset, (offset+1) , (offset+ 2) , ..., 1023, 0, 1, 2, ..., (offset-1) . :return: sys_frame_num: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SCHeduling:SFN:STATe?') return Conversions.str_to_bool(response)