A few weeks ago Miroslav Mihaylov at the University of Chicago posted a Tech-Talk message requesting suggestions for adding a simple hardware switch to an EPICS soft IOC. I suggested using a USB mouse with the switch wired across one of the buttons. As a proof of principle I created a small driver to show how the libusb routines could be used with ASYN to read values from a USB mouse.
The (very preliminary) code is at: http://www.aps.anl.gov/epics/modules/instrument/usbMouse/
I hope that this is useful and can serve as a starting point for creating EPICS support for other USB devices.
--
Eric Norum
[email protected]
- Replies:
- Re: USB/ASYN/EPICS example (usbMouse support) Circuit6 Engineering
- Navigate by Date:
- Prev:
Waveform Digitizers (Generic Transient Recorders) Ernest L. Williams Jr.
- Next:
RE: About CSS/BOY Chen, Xihui
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Waveform Digitizers (Generic Transient Recorders) Williams Jr., Ernest L.
- Next:
Re: USB/ASYN/EPICS example (usbMouse support) Circuit6 Engineering
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|