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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class DataCls: """Data commands group definition. 3 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("data", core, parent) @property def dpattern(self): """dpattern commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_dpattern'): from .Dpattern import DpatternCls self._dpattern = DpatternCls(self._core, self._cmd_group) return self._dpattern
[docs] def get_dselection(self) -> str: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DATA:DSELection \n Snippet: value: str = driver.source.bb.lora.fconfiguration.data.get_dselection() \n No command help available \n :return: dselection: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:DATA:DSELection?') return trim_str_response(response)
[docs] def set_dselection(self, dselection: str) -> None: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DATA:DSELection \n Snippet: driver.source.bb.lora.fconfiguration.data.set_dselection(dselection = 'abc') \n No command help available \n :param dselection: No help available """ param = Conversions.value_to_quoted_str(dselection) self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:DATA:DSELection {param}')
# noinspection PyTypeChecker
[docs] def get_value(self) -> enums.TdmaDataSource: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DATA \n Snippet: value: enums.TdmaDataSource = driver.source.bb.lora.fconfiguration.data.get_value() \n No command help available \n :return: data: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:DATA?') return Conversions.str_to_scalar_enum(response, enums.TdmaDataSource)
[docs] def set_value(self, data: enums.TdmaDataSource) -> None: """SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DATA \n Snippet: driver.source.bb.lora.fconfiguration.data.set_value(data = enums.TdmaDataSource.DLISt) \n No command help available \n :param data: No help available """ param = Conversions.enum_scalar_to_str(data, enums.TdmaDataSource) self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:DATA {param}')
def clone(self) -> 'DataCls': """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 = DataCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group