Source code for RsSmbv.Implementations.Source.Bb.Btooth.Econfiguration.Pconfiguration.EhFlags.AdInfo

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AdInfoCls: """AdInfo commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("adInfo", core, parent)
[docs] def get_state(self) -> bool: """SCPI: [SOURce<HW>]:BB:BTOoth:ECONfiguration:PCONfiguration:EHFLags:ADINfo:STATe \n Snippet: value: bool = driver.source.bb.btooth.econfiguration.pconfiguration.ehFlags.adInfo.get_state() \n Enables / disables the signaling of advertising data information consisting of 'Advertising Data ID' and 'Advertising Set ID'. \n :return: state: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:ECONfiguration:PCONfiguration:EHFLags:ADINfo:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """SCPI: [SOURce<HW>]:BB:BTOoth:ECONfiguration:PCONfiguration:EHFLags:ADINfo:STATe \n Snippet: driver.source.bb.btooth.econfiguration.pconfiguration.ehFlags.adInfo.set_state(state = False) \n Enables / disables the signaling of advertising data information consisting of 'Advertising Data ID' and 'Advertising Set ID'. \n :param state: 1| ON| 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:BB:BTOoth:ECONfiguration:PCONfiguration:EHFLags:ADINfo:STATe {param}')