from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums
from ... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TechnologyCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("technology", core, parent)
[docs]
def set(self, technology: enums.Technology, digital=repcap.Digital.Default) -> None:
"""
``DIGital<*>:TECHnology`` \n
Snippet: ``driver.digital.technology.set(technology = enums.Technology.CUSTom, digital = repcap.Digital.Default)`` \n
Selects the threshold voltage for various types of integrated circuits and applies it to all digital channels.
The setting affects only the settings of the first MSO bus (Logic1) . You can set the technology value for all buses with
method ``RsMxo.pbus.technology.set()`` .
:param technology: See method ``RsMxo.pbus.technology.set()`` .
:param digital: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Digital')
"""
param = Conversions.enum_scalar_to_str(technology, enums.Technology)
digital_cmd_val = self._cmd_group.get_repcap_cmd_value(digital, repcap.Digital)
self._core.io.write(f'DIGital{digital_cmd_val}:TECHnology {param}')
# noinspection PyTypeChecker
[docs]
def get(self, digital=repcap.Digital.Default) -> enums.Technology:
"""
``DIGital<*>:TECHnology`` \n
Snippet: ``value: enums.Technology = driver.digital.technology.get(digital = repcap.Digital.Default)`` \n
Selects the threshold voltage for various types of integrated circuits and applies it to all digital channels.
The setting affects only the settings of the first MSO bus (Logic1) . You can set the technology value for all buses with
method ``RsMxo.pbus.technology.set()`` .
:param digital: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Digital')
:return: technology: See method ``RsMxo.pbus.technology.set()`` .
"""
digital_cmd_val = self._cmd_group.get_repcap_cmd_value(digital, repcap.Digital)
response = self._core.io.query_str(f'DIGital{digital_cmd_val}:TECHnology?')
return Conversions.str_to_scalar_enum(response, enums.Technology)