Source code for ophyd_async.epics.adkinetix._kinetix_io

from ophyd_async.core import StrictEnum
from ophyd_async.epics import adcore
from ophyd_async.epics.core import epics_signal_rw_rbv


class KinetixTriggerMode(StrictEnum):
    internal = "Internal"
    edge = "Rising Edge"
    gate = "Exp. Gate"


class KinetixReadoutMode(StrictEnum):
    sensitivity = 1
    speed = 2
    dynamic_range = 3
    sub_electron = 4


[docs] class KinetixDriverIO(adcore.ADBaseIO): """This mirrors the interface provided by ADKinetix/db/ADKinetix.template.""" def __init__(self, prefix: str, name: str = "") -> None: # self.pixel_format = epics_signal_rw_rbv(PixelFormat, prefix + "PixelFormat") self.trigger_mode = epics_signal_rw_rbv( KinetixTriggerMode, prefix + "TriggerMode" ) self.readout_port_idx = epics_signal_rw_rbv( KinetixReadoutMode, prefix + "ReadoutPortIdx" ) super().__init__(prefix, name)