from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class LeSignaling:
"""LeSignaling commands group definition. 2 total commands, 0 Sub-groups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._base = CommandsGroup("leSignaling", core, parent)
[docs] def get_cperipheral(self) -> int:
"""SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:SLATency:LESignaling:CPERipheral \n
Snippet: value: int = driver.configure.connection.slatency.leSignaling.get_cperipheral() \n
Specify the latency of slave responses for connection tests, central ..:CCENtral and peripheral ..:CPERipheralR&S CMW LE
role. \n
:return: slave_latency: numeric Range: 0 to 499, Unit: The number of consecutive connection events
"""
response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:SLATency:LESignaling:CPERipheral?')
return Conversions.str_to_int(response)
[docs] def set_cperipheral(self, slave_latency: int) -> None:
"""SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:SLATency:LESignaling:CPERipheral \n
Snippet: driver.configure.connection.slatency.leSignaling.set_cperipheral(slave_latency = 1) \n
Specify the latency of slave responses for connection tests, central ..:CCENtral and peripheral ..:CPERipheralR&S CMW LE
role. \n
:param slave_latency: numeric Range: 0 to 499, Unit: The number of consecutive connection events
"""
param = Conversions.decimal_value_to_str(slave_latency)
self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:SLATency:LESignaling:CPERipheral {param}')
[docs] def get_ccentral(self) -> int:
"""SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:SLATency:LESignaling[:CCENtral] \n
Snippet: value: int = driver.configure.connection.slatency.leSignaling.get_ccentral() \n
Specify the latency of slave responses for connection tests, central ..:CCENtral and peripheral ..:CPERipheralR&S CMW LE
role. \n
:return: slave_latency: numeric Range: 0 to 499, Unit: The number of consecutive connection events
"""
response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:SLATency:LESignaling:CCENtral?')
return Conversions.str_to_int(response)
[docs] def set_ccentral(self, slave_latency: int) -> None:
"""SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:SLATency:LESignaling[:CCENtral] \n
Snippet: driver.configure.connection.slatency.leSignaling.set_ccentral(slave_latency = 1) \n
Specify the latency of slave responses for connection tests, central ..:CCENtral and peripheral ..:CPERipheralR&S CMW LE
role. \n
:param slave_latency: numeric Range: 0 to 499, Unit: The number of consecutive connection events
"""
param = Conversions.decimal_value_to_str(slave_latency)
self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:SLATency:LESignaling:CCENtral {param}')