Source code for RsCmwBluetoothSig.Implementations.Configure_.RxQuality_.Search_.Packets_.LowEnergy

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class LowEnergy: """LowEnergy commands group definition. 3 total commands, 0 Sub-groups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("lowEnergy", core, parent)
[docs] def get_lrange(self) -> int: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LRANge \n Snippet: value: int = driver.configure.rxQuality.search.packets.lowEnergy.get_lrange() \n Defines the number of data packets to be measured per measurement cycle (statistics cycle) . INTRO_CMD_HELP: Refer also to the following commands: \n - LE direct test mode: Commands for uncoded LE 1M PHY (..:LE1M..) , LE 2M PHY (..:LE2M..) , and LE coded PHY (..:LRANge..) are available. - LE connection tests (normal mode) : Commands ..:NMODe:LENergy:.. are available. - LE test mode: Commands ..:TMODe:LENergy:.. are available. \n :return: number_packets: numeric Range: 1 to 30E+3 """ response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LRANge?') return Conversions.str_to_int(response)
[docs] def set_lrange(self, number_packets: int) -> None: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LRANge \n Snippet: driver.configure.rxQuality.search.packets.lowEnergy.set_lrange(number_packets = 1) \n Defines the number of data packets to be measured per measurement cycle (statistics cycle) . INTRO_CMD_HELP: Refer also to the following commands: \n - LE direct test mode: Commands for uncoded LE 1M PHY (..:LE1M..) , LE 2M PHY (..:LE2M..) , and LE coded PHY (..:LRANge..) are available. - LE connection tests (normal mode) : Commands ..:NMODe:LENergy:.. are available. - LE test mode: Commands ..:TMODe:LENergy:.. are available. \n :param number_packets: numeric Range: 1 to 30E+3 """ param = Conversions.decimal_value_to_str(number_packets) self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LRANge {param}')
[docs] def get_le_2_m(self) -> int: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LE2M \n Snippet: value: int = driver.configure.rxQuality.search.packets.lowEnergy.get_le_2_m() \n Defines the number of data packets to be measured per measurement cycle (statistics cycle) . INTRO_CMD_HELP: Refer also to the following commands: \n - LE direct test mode: Commands for uncoded LE 1M PHY (..:LE1M..) , LE 2M PHY (..:LE2M..) , and LE coded PHY (..:LRANge..) are available. - LE connection tests (normal mode) : Commands ..:NMODe:LENergy:.. are available. - LE test mode: Commands ..:TMODe:LENergy:.. are available. \n :return: number_packets: numeric Range: 1 to 30E+3 """ response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LE2M?') return Conversions.str_to_int(response)
[docs] def set_le_2_m(self, number_packets: int) -> None: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LE2M \n Snippet: driver.configure.rxQuality.search.packets.lowEnergy.set_le_2_m(number_packets = 1) \n Defines the number of data packets to be measured per measurement cycle (statistics cycle) . INTRO_CMD_HELP: Refer also to the following commands: \n - LE direct test mode: Commands for uncoded LE 1M PHY (..:LE1M..) , LE 2M PHY (..:LE2M..) , and LE coded PHY (..:LRANge..) are available. - LE connection tests (normal mode) : Commands ..:NMODe:LENergy:.. are available. - LE test mode: Commands ..:TMODe:LENergy:.. are available. \n :param number_packets: numeric Range: 1 to 30E+3 """ param = Conversions.decimal_value_to_str(number_packets) self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LE2M {param}')
[docs] def get_le_1_m(self) -> int: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy[:LE1M] \n Snippet: value: int = driver.configure.rxQuality.search.packets.lowEnergy.get_le_1_m() \n Defines the number of data packets to be measured per measurement cycle (statistics cycle) . INTRO_CMD_HELP: Refer also to the following commands: \n - LE direct test mode: Commands for uncoded LE 1M PHY (..:LE1M..) , LE 2M PHY (..:LE2M..) , and LE coded PHY (..:LRANge..) are available. - LE connection tests (normal mode) : Commands ..:NMODe:LENergy:.. are available. - LE test mode: Commands ..:TMODe:LENergy:.. are available. \n :return: number_packets: numeric Range: 1 to 30E+3 """ response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LE1M?') return Conversions.str_to_int(response)
[docs] def set_le_1_m(self, number_packets: int) -> None: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy[:LE1M] \n Snippet: driver.configure.rxQuality.search.packets.lowEnergy.set_le_1_m(number_packets = 1) \n Defines the number of data packets to be measured per measurement cycle (statistics cycle) . INTRO_CMD_HELP: Refer also to the following commands: \n - LE direct test mode: Commands for uncoded LE 1M PHY (..:LE1M..) , LE 2M PHY (..:LE2M..) , and LE coded PHY (..:LRANge..) are available. - LE connection tests (normal mode) : Commands ..:NMODe:LENergy:.. are available. - LE test mode: Commands ..:TMODe:LENergy:.. are available. \n :param number_packets: numeric Range: 1 to 30E+3 """ param = Conversions.decimal_value_to_str(number_packets) self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:RXQuality:SEARch:PACKets:LENergy:LE1M {param}')