I would like to announce the publication of a framework for helping to build EPICS IOCs. The scope is somewhat in the spirit of Asyn, but the details and implementation are altogether unlike. Some important differences:
1.
The interface to EPICS is completely synchronous. Any decoupling of processing needs to be done explicitly and separately from the framework.
2.
The library is based on C99, not C++. EPICS record type overloading is implemented via slightly scary use of macros (don’t look too closely if you’re of faint heart!)
3.
Device support is provided for the 11 basic EPICS record types (ai, ao, bi, bo, longin, longout, stringin, stringout, mbbi, mbbo, waveform) directly, there is no abstraction layer beyond this.
This framework has had a very long gestation. Its first incarnation was as part of the implementation of Libera EBPM support, at least 8 years ago. The second incarnation was inspired by work that James Rowland did on what he called “Generic”
device support: his code was very concise and to the point, but only provided support for ai/ao records and waveforms of double. Most recently this framework has been used to build device support for the Libera TMBF (Transverse Multi-Bunch Feedback processor)
used at Diamond, and for our own X-ray photon beam position monitors. This release is the result of extracting this framework as a standalone EPICS support module.
This framework depends on epicsdbbuilder, also published today, but is otherwise self contained. I will shortly be publishing TMBF, which is a large implementation (560 records) using this framework.
epics_device can be found at
https://github.com/Araneidae/epics_device
epicsdbbuilder can be found at
https://github.com/Araneidae/epicsdbbuilder
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom