Source code for RsCmwBluetoothSig.Implementations.Configure_.RfSettings_.Dtx_.Sing_.Foffset

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Foffset: """Foffset commands group definition. 11 total commands, 3 Sub-groups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("foffset", core, parent) @property def nmode(self): """nmode commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_nmode'): from .Foffset_.Nmode import Nmode self._nmode = Nmode(self._core, self._base) return self._nmode @property def tmode(self): """tmode commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_tmode'): from .Foffset_.Tmode import Tmode self._tmode = Tmode(self._core, self._base) return self._tmode @property def lowEnergy(self): """lowEnergy commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_lowEnergy'): from .Foffset_.LowEnergy import LowEnergy self._lowEnergy = LowEnergy(self._core, self._base) return self._lowEnergy
[docs] def get_edrate(self) -> int or bool: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RFSettings:DTX:SING:FOFFset:EDRate \n Snippet: value: int or bool = driver.configure.rfSettings.dtx.sing.foffset.get_edrate() \n Specify the constant frequency offset to be added to the center frequency. INTRO_CMD_HELP: Refer also to the following commands: \n - RF tests: Commands for test mode classic (..:BRATe..) , (..:EDRate..) and for LE direct test mode (..:LE1M..) , (..:LE2M..) , (.. :LRANge..) are available. INTRO_CMD_HELP: Refer also to the following commands: \n - LE connection tests (normal mode) : Commands for uncoded LE 1M PHY (..:NMODe:LENergy:LE1M..) , LE 2M PHY (..:NMODe:LENergy:LE2M..) , and LE coded PHY (.. :NMODe:LENergy:LRANge..) are available. INTRO_CMD_HELP: Refer also to the following commands: \n - LE test mode: Commands for uncoded LE 1M PHY (..:TMODe:LENergy:LE1M..) , LE 2M PHY (..:TMODe:LENergy:LE2M..) , and LE coded PHY (.. :TMODe:LENergy:LRANge..) are available. \n :return: freq_offset: numeric | ON | OFF Range: -250 kHz to 250 kHz Additional ON/OFF enables/disables constant frequency offset """ response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:RFSettings:DTX:SING:FOFFset:EDRate?') return Conversions.str_to_int_or_bool(response)
[docs] def set_edrate(self, freq_offset: int or bool) -> None: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RFSettings:DTX:SING:FOFFset:EDRate \n Snippet: driver.configure.rfSettings.dtx.sing.foffset.set_edrate(freq_offset = 1) \n Specify the constant frequency offset to be added to the center frequency. INTRO_CMD_HELP: Refer also to the following commands: \n - RF tests: Commands for test mode classic (..:BRATe..) , (..:EDRate..) and for LE direct test mode (..:LE1M..) , (..:LE2M..) , (.. :LRANge..) are available. INTRO_CMD_HELP: Refer also to the following commands: \n - LE connection tests (normal mode) : Commands for uncoded LE 1M PHY (..:NMODe:LENergy:LE1M..) , LE 2M PHY (..:NMODe:LENergy:LE2M..) , and LE coded PHY (.. :NMODe:LENergy:LRANge..) are available. INTRO_CMD_HELP: Refer also to the following commands: \n - LE test mode: Commands for uncoded LE 1M PHY (..:TMODe:LENergy:LE1M..) , LE 2M PHY (..:TMODe:LENergy:LE2M..) , and LE coded PHY (.. :TMODe:LENergy:LRANge..) are available. \n :param freq_offset: numeric | ON | OFF Range: -250 kHz to 250 kHz Additional ON/OFF enables/disables constant frequency offset """ param = Conversions.decimal_or_bool_value_to_str(freq_offset) self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:RFSettings:DTX:SING:FOFFset:EDRate {param}')
[docs] def get_brate(self) -> int or bool: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RFSettings:DTX:SING:FOFFset:BRATe \n Snippet: value: int or bool = driver.configure.rfSettings.dtx.sing.foffset.get_brate() \n Specify the constant frequency offset to be added to the center frequency. INTRO_CMD_HELP: Refer also to the following commands: \n - RF tests: Commands for test mode classic (..:BRATe..) , (..:EDRate..) and for LE direct test mode (..:LE1M..) , (..:LE2M..) , (.. :LRANge..) are available. INTRO_CMD_HELP: Refer also to the following commands: \n - LE connection tests (normal mode) : Commands for uncoded LE 1M PHY (..:NMODe:LENergy:LE1M..) , LE 2M PHY (..:NMODe:LENergy:LE2M..) , and LE coded PHY (.. :NMODe:LENergy:LRANge..) are available. INTRO_CMD_HELP: Refer also to the following commands: \n - LE test mode: Commands for uncoded LE 1M PHY (..:TMODe:LENergy:LE1M..) , LE 2M PHY (..:TMODe:LENergy:LE2M..) , and LE coded PHY (.. :TMODe:LENergy:LRANge..) are available. \n :return: freq_offset: numeric | ON | OFF Range: -250 kHz to 250 kHz Additional ON/OFF enables/disables constant frequency offset """ response = self._core.io.query_str('CONFigure:BLUetooth:SIGNaling<Instance>:RFSettings:DTX:SING:FOFFset:BRATe?') return Conversions.str_to_int_or_bool(response)
[docs] def set_brate(self, freq_offset: int or bool) -> None: """SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:RFSettings:DTX:SING:FOFFset:BRATe \n Snippet: driver.configure.rfSettings.dtx.sing.foffset.set_brate(freq_offset = 1) \n Specify the constant frequency offset to be added to the center frequency. INTRO_CMD_HELP: Refer also to the following commands: \n - RF tests: Commands for test mode classic (..:BRATe..) , (..:EDRate..) and for LE direct test mode (..:LE1M..) , (..:LE2M..) , (.. :LRANge..) are available. INTRO_CMD_HELP: Refer also to the following commands: \n - LE connection tests (normal mode) : Commands for uncoded LE 1M PHY (..:NMODe:LENergy:LE1M..) , LE 2M PHY (..:NMODe:LENergy:LE2M..) , and LE coded PHY (.. :NMODe:LENergy:LRANge..) are available. INTRO_CMD_HELP: Refer also to the following commands: \n - LE test mode: Commands for uncoded LE 1M PHY (..:TMODe:LENergy:LE1M..) , LE 2M PHY (..:TMODe:LENergy:LE2M..) , and LE coded PHY (.. :TMODe:LENergy:LRANge..) are available. \n :param freq_offset: numeric | ON | OFF Range: -250 kHz to 250 kHz Additional ON/OFF enables/disables constant frequency offset """ param = Conversions.decimal_or_bool_value_to_str(freq_offset) self._core.io.write(f'CONFigure:BLUetooth:SIGNaling<Instance>:RFSettings:DTX:SING:FOFFset:BRATe {param}')
def clone(self) -> 'Foffset': """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 = Foffset(self._core, self._base.parent) self._base.synchronize_repcaps(new_group) return new_group