Source code for RsSmw.Implementations.Source.Bb.Tdscdma.Down.Pparameter.Pccpch

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:TDSCdma:DOWN:PPARameter:PCCPch:STATe`` \n Snippet: ``value: bool = driver.source.bb.tdscdma.down.pparameter.pccpch.get_state()`` \n Defines, if P-CCPCH is used in the scenario or not. If P-CCPCH is used, both P-CCPCHs are activated in slot 0 with spreading code 0+1. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:DOWN:PPARameter:PCCPch:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:DOWN:PPARameter:PCCPch:STATe`` \n Snippet: ``driver.source.bb.tdscdma.down.pparameter.pccpch.set_state(state = False)`` \n Defines, if P-CCPCH is used in the scenario or not. If P-CCPCH is used, both P-CCPCHs are activated in slot 0 with spreading code 0+1. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:DOWN:PPARameter:PCCPch:STATe {param}')