Source code for RsCmwBluetoothSig.Implementations.Configure_.Connection_.Interval

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Interval: """Interval commands group definition. 1 total commands, 0 Sub-groups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("interval", core, parent)
[docs] def get_le_signaling(self) -> int: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:INTerval:LESignaling \n Snippet: value: int = driver.configure.connection.interval.get_le_signaling() \n Sets the time interval between the two consecutive connection events. The interval in ms is calculated as the specified value multiplied by 1.25 ms. \n :return: connection_interval: numeric Range: 6 to 3200 """ response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:INTerval:LESignaling?') return Conversions.str_to_int(response)
[docs] def set_le_signaling(self, connection_interval: int) -> None: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:INTerval:LESignaling \n Snippet: driver.configure.connection.interval.set_le_signaling(connection_interval = 1) \n Sets the time interval between the two consecutive connection events. The interval in ms is calculated as the specified value multiplied by 1.25 ms. \n :param connection_interval: numeric Range: 6 to 3200 """ param = Conversions.decimal_value_to_str(connection_interval) self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:INTerval:LESignaling {param}')