Source code for RsSmcv.Implementations.Source.Bb.Lora.Fconfiguration

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class FconfigurationCls: """Fconfiguration commands group definition. 16 total commands, 9 Subgroups, 5 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("fconfiguration", core, parent) @property def bmode(self): """bmode commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_bmode'): from .Bmode import BmodeCls self._bmode = BmodeCls(self._core, self._cmd_group) return self._bmode @property def cmode(self): """cmode commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_cmode'): from .Cmode import CmodeCls self._cmode = CmodeCls(self._core, self._cmd_group) return self._cmode @property def data(self): """data commands group. 1 Sub-classes, 2 commands.""" if not hasattr(self, '_data'): from .Data import DataCls self._data = DataCls(self._core, self._cmd_group) return self._data @property def eactive(self): """eactive commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_eactive'): from .Eactive import EactiveCls self._eactive = EactiveCls(self._core, self._cmd_group) return self._eactive @property def hactive(self): """hactive commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_hactive'): from .Hactive import HactiveCls self._hactive = HactiveCls(self._core, self._cmd_group) return self._hactive @property def iactive(self): """iactive commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_iactive'): from .Iactive import IactiveCls self._iactive = IactiveCls(self._core, self._cmd_group) return self._iactive @property def pcrc(self): """pcrc commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pcrc'): from .Pcrc import PcrcCls self._pcrc = PcrcCls(self._core, self._cmd_group) return self._pcrc @property def prcMode(self): """prcMode commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_prcMode'): from .PrcMode import PrcModeCls self._prcMode = PrcModeCls(self._core, self._cmd_group) return self._prcMode @property def rbit(self): """rbit commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_rbit'): from .Rbit import RbitCls self._rbit = RbitCls(self._core, self._cmd_group) return self._rbit # noinspection PyTypeChecker
[docs] def get_crate(self) -> enums.LoRaCodRate: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:CRATe \n Snippet: value: enums.LoRaCodRate = driver.source.bb.lora.fconfiguration.get_crate() \n No command help available \n :return: crate: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:CRATe?') return Conversions.str_to_scalar_enum(response, enums.LoRaCodRate)
[docs] def set_crate(self, crate: enums.LoRaCodRate) -> None: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:CRATe \n Snippet: driver.source.bb.lora.fconfiguration.set_crate(crate = enums.LoRaCodRate.CR0) \n No command help available \n :param crate: No help available """ param = Conversions.enum_scalar_to_str(crate, enums.LoRaCodRate) self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:CRATe {param}')
[docs] def get_dlength(self) -> int: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DLENgth \n Snippet: value: int = driver.source.bb.lora.fconfiguration.get_dlength() \n No command help available \n :return: dlength: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:DLENgth?') return Conversions.str_to_int(response)
[docs] def set_dlength(self, dlength: int) -> None: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DLENgth \n Snippet: driver.source.bb.lora.fconfiguration.set_dlength(dlength = 1) \n No command help available \n :param dlength: No help available """ param = Conversions.decimal_value_to_str(dlength) self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:DLENgth {param}')
# noinspection PyTypeChecker
[docs] def get_sfactor(self) -> enums.LoRaSf: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:SFACtor \n Snippet: value: enums.LoRaSf = driver.source.bb.lora.fconfiguration.get_sfactor() \n No command help available \n :return: sf: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:SFACtor?') return Conversions.str_to_scalar_enum(response, enums.LoRaSf)
[docs] def set_sfactor(self, sf: enums.LoRaSf) -> None: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:SFACtor \n Snippet: driver.source.bb.lora.fconfiguration.set_sfactor(sf = enums.LoRaSf.SF10) \n No command help available \n :param sf: No help available """ param = Conversions.enum_scalar_to_str(sf, enums.LoRaSf) self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:SFACtor {param}')
# noinspection PyTypeChecker
[docs] def get_smode(self) -> enums.LoRaSyncMode: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:SMODe \n Snippet: value: enums.LoRaSyncMode = driver.source.bb.lora.fconfiguration.get_smode() \n No command help available \n :return: smode: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:SMODe?') return Conversions.str_to_scalar_enum(response, enums.LoRaSyncMode)
[docs] def set_smode(self, smode: enums.LoRaSyncMode) -> None: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:SMODe \n Snippet: driver.source.bb.lora.fconfiguration.set_smode(smode = enums.LoRaSyncMode.PRIVate) \n No command help available \n :param smode: No help available """ param = Conversions.enum_scalar_to_str(smode, enums.LoRaSyncMode) self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:SMODe {param}')
[docs] def get_up_length(self) -> int: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:UPLength \n Snippet: value: int = driver.source.bb.lora.fconfiguration.get_up_length() \n No command help available \n :return: plength: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:UPLength?') return Conversions.str_to_int(response)
[docs] def set_up_length(self, plength: int) -> None: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:UPLength \n Snippet: driver.source.bb.lora.fconfiguration.set_up_length(plength = 1) \n No command help available \n :param plength: No help available """ param = Conversions.decimal_value_to_str(plength) self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:UPLength {param}')
def clone(self) -> 'FconfigurationCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = FconfigurationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group