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.BusTechnology, bus=repcap.Bus.Default) -> None:
"""
``BUS<*>:PARallel:TECHnology`` \n
Snippet: ``driver.bus.parallel.technology.set(technology = enums.BusTechnology.CUSTom, bus = repcap.Bus.Default)`` \n
Selects the threshold voltage for various types of integrated circuits and applies it to all digital channels.
:param technology: V15: TTL V25: CMOS 5.0 V V165: CMOS 3.3 V V125: CMOS 2.5 V V09: CMOS 1.85 V VM13: ECL, -1.3 V V38: PECL V20: LVPECL V0: Ground MANual: Set a user-defined threshold value with method ``RsRtx.digital.threshold.set()``
:param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus')
"""
param = Conversions.enum_scalar_to_str(technology, enums.BusTechnology)
bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus)
self._core.io.write(f'BUS{bus_cmd_val}:PARallel:TECHnology {param}')
# noinspection PyTypeChecker
[docs]
def get(self, bus=repcap.Bus.Default) -> enums.BusTechnology:
"""
``BUS<*>:PARallel:TECHnology`` \n
Snippet: ``value: enums.BusTechnology = driver.bus.parallel.technology.get(bus = repcap.Bus.Default)`` \n
Selects the threshold voltage for various types of integrated circuits and applies it to all digital channels.
:param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus')
:return: technology: V15: TTL V25: CMOS 5.0 V V165: CMOS 3.3 V V125: CMOS 2.5 V V09: CMOS 1.85 V VM13: ECL, -1.3 V V38: PECL V20: LVPECL V0: Ground MANual: Set a user-defined threshold value with method ``RsRtx.digital.threshold.set()``
"""
bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus)
response = self._core.io.query_str(f'BUS{bus_cmd_val}:PARallel:TECHnology?')
return Conversions.str_to_scalar_enum(response, enums.BusTechnology)