Source code for apstools.synApps_ophyd.busy


"""
Ophyd support for the EPICS busy record


Public Structures

.. autosummary::
   
    ~busyRecord

"""

#-----------------------------------------------------------------------------
# :author:    Pete R. Jemian
# :email:     jemian@anl.gov
# :copyright: (c) 2017-2019, UChicago Argonne, LLC
#
# Distributed under the terms of the Creative Commons Attribution 4.0 International Public License.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-----------------------------------------------------------------------------

from enum import Enum
from ophyd.device import Device, Component
from ophyd import EpicsSignal


__all__ = """
    busyRecord
    BusyStatus
    """.split()


[docs]class BusyStatus(str, Enum): busy = "Busy" done = "Done"
class busyRecord(Device): state = Component(EpicsSignal, "") output_link = Component(EpicsSignal, ".OUT") forward_link = Component(EpicsSignal, ".FLNK")