-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/BCDA-APS/apstools
- Loading branch information
Showing
6 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
""" | ||
Ophyd support for the EPICS asyn record | ||
Public Structures | ||
.. autosummary:: | ||
~AsynRecord | ||
:see: https://github.com/epics-modules/asyn | ||
""" | ||
|
||
#----------------------------------------------------------------------------- | ||
# :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 ophyd.device import Component | ||
from ophyd import EpicsSignal, EpicsSignalRO | ||
from ._common import EpicsRecordDeviceCommonAll | ||
|
||
|
||
__all__ = ["AsynRecord", ] | ||
|
||
|
||
class AsynRecord(EpicsRecordDeviceCommonAll): | ||
""" | ||
EPICS asyn record support in ophyd | ||
:see: https://epics.anl.gov/modules/soft/asyn/R4-36/asynRecord.html | ||
:see: https://github.com/epics-modules/asyn | ||
:see: https://epics.anl.gov/modules/soft/asyn/ | ||
""" | ||
ascii_output = Component(EpicsSignal, ".AOUT") | ||
binary_output = Component(EpicsSignal, ".BOUT") | ||
binary_output_maxlength = Component(EpicsSignal, ".BMAX") | ||
end_of_message_reason = Component(EpicsSignalRO, ".EOMR") | ||
input_format = Component(EpicsSignalRO, ".IFMT") | ||
interface = Component(EpicsSignal, ".IFACE") | ||
number_bytes_actually_read = Component(EpicsSignalRO, ".NRRD") | ||
number_bytes_actually_written = Component(EpicsSignalRO, ".NAWT") | ||
number_bytes_to_read = Component(EpicsSignal, ".NORD") | ||
number_bytes_to_write = Component(EpicsSignal, ".NOWT") | ||
octet_is_valid = Component(EpicsSignalRO, ".OCTETIV") | ||
output_format = Component(EpicsSignalRO, ".OFMT") | ||
terminator_input = Component(EpicsSignal, ".IEOS") | ||
terminator_output = Component(EpicsSignal, ".OEOS") | ||
timeout = Component(EpicsSignal, ".TMOT") | ||
transaction_mode = Component(EpicsSignal, ".TMOD") | ||
translated_input = Component(EpicsSignal, ".TINP") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
synApps asyn record | ||
------------------- | ||
|
||
see the synApps ``asyn`` module suppport: | ||
https://github.com/epics-modules/asyn | ||
|
||
.. automodule:: apstools.synApps.asyn | ||
:members: | ||
|