Source code for RsSmcv.Implementations.Source.Bb.Isdbt.Special.Settings

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SettingsCls: """Settings commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("settings", core, parent)
[docs] def get_state(self) -> bool: """SCPI: [SOURce<HW>]:BB:ISDBt:[SPECial]:SETTings:[STATe] \n Snippet: value: bool = driver.source.bb.isdbt.special.settings.get_state() \n Enables/disables special settings. The setting allows you to switch between standard-compliant and user-defined channel coding. \n :return: settings: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ISDBt:SPECial:SETTings:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, settings: bool) -> None: """SCPI: [SOURce<HW>]:BB:ISDBt:[SPECial]:SETTings:[STATe] \n Snippet: driver.source.bb.isdbt.special.settings.set_state(settings = False) \n Enables/disables special settings. The setting allows you to switch between standard-compliant and user-defined channel coding. \n :param settings: 1| ON| 0| OFF """ param = Conversions.bool_to_str(settings) self._core.io.write(f'SOURce<HwInstance>:BB:ISDBt:SPECial:SETTings:STATe {param}')