Subject: |
Re: Device driver for NOAO instrument |
From: |
[email protected] (John R. Winans) |
Date: |
Tue, 18 Apr 1995 10:22:00 -0500 |
I would start by looking at the vxWorks/src/drv/serial/cd2400Serial.c file
that comes with the vxWorks distribution. Just hack it up and you have a
vx(sometimes)Works serial driver that you can access by opening something
like /dev/myserial1 or what ever. Look at the _vxWorks_ docs on drivers
(especially the tyCoDrv driver docs that outline the cd2400Serial.c file)
and the cd2400Serial.c file and you should have NO problems getting your
current paradigm ported.
Since it is all software and it won't actually wait to get the I/O finished (I
assume you are just pokeing around VME space and not waiting or spinning in the
driver?), I would write a regular (as in NOT async) device support that
write()'s your command string/data out the serial driver and does a blocking
read on its response (which will already be queued and ready.)
--John
- Navigate by Date:
- Prev:
Device driver for NOAO instrument Richard Wolff
- Next:
Re: Changing SCAN field dynamically Marty Kraimer
- 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:
Device driver for NOAO instrument Richard Wolff
- Next:
caWave and -lansi mcgehee
- 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
|