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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Phy: """Phy commands group definition. 2 total commands, 1 Sub-groups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("phy", core, parent) @property def nmode(self): """nmode commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_nmode'): from .Phy_.Nmode import Nmode self._nmode = Nmode(self._core, self._base) return self._nmode # noinspection PyTypeChecker
[docs] def get_low_energy(self) -> enums.LePhysicalType: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:PHY:LENergy \n Snippet: value: enums.LePhysicalType = driver.configure.connection.phy.get_low_energy() \n Selects the physical layer used for LE connections. INTRO_CMD_HELP: Defines the Bluetooth burst type. The command is relevant for: \n - Command for LE direct test mode: ..:PHY:LENergy INTRO_CMD_HELP: Defines the Bluetooth burst type. The command is relevant for: \n - Command for LE connection tests (normal mode) : ..:PHY:NMODe:LENergy INTRO_CMD_HELP: Defines the Bluetooth burst type. The command is relevant for: \n - Command for LE test mode: ..:TCONnection:PHY:LENergy \n :return: phy: LE1M | LE2M | LELR LE1M: LE 1 Msymbol/s uncoded PHY LE2M: LE 2 Msymbol/s uncoded PHY LELR: LE 1 Msymbol/s long range (LE coded PHY) """ response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:PHY:LENergy?') return Conversions.str_to_scalar_enum(response, enums.LePhysicalType)
[docs] def set_low_energy(self, phy: enums.LePhysicalType) -> None: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:PHY:LENergy \n Snippet: driver.configure.connection.phy.set_low_energy(phy = enums.LePhysicalType.LE1M) \n Selects the physical layer used for LE connections. INTRO_CMD_HELP: Defines the Bluetooth burst type. The command is relevant for: \n - Command for LE direct test mode: ..:PHY:LENergy INTRO_CMD_HELP: Defines the Bluetooth burst type. The command is relevant for: \n - Command for LE connection tests (normal mode) : ..:PHY:NMODe:LENergy INTRO_CMD_HELP: Defines the Bluetooth burst type. The command is relevant for: \n - Command for LE test mode: ..:TCONnection:PHY:LENergy \n :param phy: LE1M | LE2M | LELR LE1M: LE 1 Msymbol/s uncoded PHY LE2M: LE 2 Msymbol/s uncoded PHY LELR: LE 1 Msymbol/s long range (LE coded PHY) """ param = Conversions.enum_scalar_to_str(phy, enums.LePhysicalType) self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:CONNection:PHY:LENergy {param}')
def clone(self) -> 'Phy': """Clones the group by creating new object from it and its whole existing sub-groups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = Phy(self._core, self._base.parent) self._base.synchronize_repcaps(new_group) return new_group