from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PtransitionCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ptransition", core, parent)
[docs]
def set(self, summary_bit: int) -> None:
"""
``STATus:QUEStionable:PTRansition`` \n
Snippet: ``driver.status.questionable.ptransition.set(summary_bit = 1)`` \n
These commands control the Positive TRansition part of a register. Setting a bit causes a 0 to 1 transition in the
corresponding bit of the associated register. The transition also writes a 1 into the associated bit of the corresponding
EVENt register.
"""
param = Conversions.decimal_value_to_str(summary_bit)
self._core.io.write(f'STATus:QUEStionable:PTRansition {param}')
[docs]
def get(self) -> int:
"""
``STATus:QUEStionable:PTRansition`` \n
Snippet: ``value: int = driver.status.questionable.ptransition.get()`` \n
These commands control the Positive TRansition part of a register. Setting a bit causes a 0 to 1 transition in the
corresponding bit of the associated register. The transition also writes a 1 into the associated bit of the corresponding
EVENt register.
"""
response = self._core.io.query_str(f'STATus:QUEStionable:PTRansition?')
return Conversions.str_to_int(response)