g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  <19951996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  Index 1994  <19951996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
<== Date ==> <== Thread ==>

Subject: I/O Interrupt Scanning
From: Andrew Johnson <anj@mail.ast.cam.ac.uk>
Date: Tue, 10 Jan 1995 20:49:27 GMT
Question: Is it legal to call scanIoInit from within a get_ioint_info device 
routine?

I am writing a driver which could conceivably have up to 255 different I/O 
interrupt event sources (although they all come through one ISR).

At present within the device initialisation routine I check if a record is set 
to I/O Interrupt scanning and call scanIoInit if it is.  For a record which 
started out as I/O Interrupt I can subsequently set the SCAN field to Passive, 
I/O Intr or one of the periodics.

However for records which are not set to I/O Interrupt scan at initialisation, I 
don't call scanIoInit, so if I later try to change the SCAN field on these 
records to I/O Interrupt, get_ioint_info has to return an error and the SCAN 
field will not be altered.

For performance reasons I don't want to set up the IOSCANPVT unless the database 
application needs it, so I wondered whether can I call scanIoInit from within 
the get_ioint_info device routine, then store and return the IOSCANPVT pointer 
immediately?

- Andrew

          ,_}\_.        Andrew Johnson, Technology Division
         /      \       Royal Greenwich Observatory
~~~~~~~~| ,--/;. )~~~~  Madingley Road, Cambridge, UK
    .,  |/  (/  U       Phone: +44 (0)1223 374823
  .`., /_\ . .          Email: anj@mail.ast.cam.ac.uk
     wwWWWww'           WWW: http://cast0.ast.cam.ac.uk/~anj/




Navigate by Date:
Prev: Re: EPICS env parameters Michael Bordua
Next: Re: I/O Interrupt Scanning Marty Kraimer
Index: 1994  <19951996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
Navigate by Thread:
Prev: Re: EPICS env parameters Michael Bordua
Next: Re: I/O Interrupt Scanning Marty Kraimer
Index: 1994  <19951996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·