Source code for RsSmw.Implementations.Source.Bb.Nfc.Sconfiguration

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


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

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

[docs] def get_tn_samples(self) -> int: """ ``[SOURce<HW>]:BB:NFC:SCONfiguration:TNSamples`` \n Snippet: ``value: int = driver.source.bb.nfc.sconfiguration.get_tn_samples()`` \n Queries the total number of samples allocated to the current frame. :return: tn_samples: integer """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:SCONfiguration:TNSamples?') return Conversions.str_to_int(response)
[docs] def get_ts_duration(self) -> float: """ ``[SOURce<HW>]:BB:NFC:SCONfiguration:TSDuration`` \n Snippet: ``value: float = driver.source.bb.nfc.sconfiguration.get_ts_duration()`` \n Queries the total sequence duration for the current settings. :return: ts_duration: float """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:SCONfiguration:TSDuration?') return Conversions.str_to_float(response)