Source code for RsSmw.Implementations.Source.Bb.Dvb.Dvbx.GhConfig

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class GhConfigCls:
	"""
	| Commands in total: 11
	| Subgroups: 7
	| Direct child commands: 4
	"""

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

	@property
	def fid(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_fid'):
			from .Fid import FidCls
			self._fid = FidCls(self._core, self._cmd_group)
		return self._fid

	@property
	def fiUse(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_fiUse'):
			from .FiUse import FiUseCls
			self._fiUse = FiUseCls(self._core, self._cmd_group)
		return self._fiUse

	@property
	def label(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_label'):
			from .Label import LabelCls
			self._label = LabelCls(self._core, self._cmd_group)
		return self._label

	@property
	def luse(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_luse'):
			from .Luse import LuseCls
			self._luse = LuseCls(self._core, self._cmd_group)
		return self._luse

	@property
	def ptUse(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_ptUse'):
			from .PtUse import PtUseCls
			self._ptUse = PtUseCls(self._core, self._cmd_group)
		return self._ptUse

	@property
	def ptype(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_ptype'):
			from .Ptype import PtypeCls
			self._ptype = PtypeCls(self._core, self._cmd_group)
		return self._ptype

	@property
	def tluse(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_tluse'):
			from .Tluse import TluseCls
			self._tluse = TluseCls(self._core, self._cmd_group)
		return self._tluse

[docs] def get_glength(self) -> int: """ ``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:GLENgth`` \n Snippet: ``value: int = driver.source.bb.dvb.dvbx.ghConfig.get_glength()`` \n Sets the number of bytes following in the GSE packet. :return: glength: integer Range: 1 to 4096 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:GLENgth?') return Conversions.str_to_int(response)
[docs] def set_glength(self, glength: int) -> None: """ ``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:GLENgth`` \n Snippet: ``driver.source.bb.dvb.dvbx.ghConfig.set_glength(glength = 1)`` \n Sets the number of bytes following in the GSE packet. :param glength: integer Range: 1 to 4096 """ param = Conversions.decimal_value_to_str(glength) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:GLENgth {param}')
[docs] def get_ltype(self) -> int: """ ``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:LTYPe`` \n Snippet: ``value: int = driver.source.bb.dvb.dvbx.ghConfig.get_ltype()`` \n Set the type of the used label field. :return: ltype: integer Range: 0 to 3 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:LTYPe?') return Conversions.str_to_int(response)
[docs] def set_ltype(self, ltype: int) -> None: """ ``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:LTYPe`` \n Snippet: ``driver.source.bb.dvb.dvbx.ghConfig.set_ltype(ltype = 1)`` \n Set the type of the used label field. :param ltype: integer Range: 0 to 3 """ param = Conversions.decimal_value_to_str(ltype) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:LTYPe {param}')
[docs] def get_tlength(self) -> int: """ ``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:TLENgth`` \n Snippet: ``value: int = driver.source.bb.dvb.dvbx.ghConfig.get_tlength()`` \n Queries the total length. :return: tlength: integer Range: 1 to 65536, Unit: bytes """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:TLENgth?') return Conversions.str_to_int(response)
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:[STATe]`` \n Snippet: ``value: bool = driver.source.bb.dvb.dvbx.ghConfig.get_state()`` \n Inserts header information in the transport stream. :return: gh_active: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, gh_active: bool) -> None: """ ``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:[STATe]`` \n Snippet: ``driver.source.bb.dvb.dvbx.ghConfig.set_state(gh_active = False)`` \n Inserts header information in the transport stream. :param gh_active: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(gh_active) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:STATe {param}')
def clone(self) -> 'GhConfigCls': """ 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 = GhConfigCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group