EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

<19941995  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  Index <19941995  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 
<== Date ==> <== Thread ==>

Subject: Re: Need to use a board in various configurations.
From: [email protected] (Ned Arnold)
Date: Mon, 11 Jul 94 13:07:25 CDT
> One possible solution would be to tweak the driver a bit and create 5
> device-support packages (32 bits in & no bits out, 8 bits in & 24 bits
> out, ... no bits in and & 32 bits out), but that seems kind of ugly.
> 
> The other options seem even uglier, and much more prone to error in the
> configuration process.
> 
> I'm probably missing the obvious here (now that's something I seem to excel
> at!).  Any ideas would be appreciated.
> 
> -bill
> 

I'm always an advocate for making the interface to the application developer
as easy as possible, so I agree that the 5 DTYP's are not very pretty. 

How about having the driver allocate whether a byte is input or output
depending on the first bit request for that octet. For example, if Bit 3 is
specified in an input record (bi, mbbi), have the driver keep track that 
bits 0 thru 7 are inputs. If an output record later requests bit 7, issue an
error message that this cannot be accommodated. 

This way, the application person doesn't have to worry about anything unless
he/she has assigned bits in contradiction to the hardware capabilities, and
then an error will be printed.

To keep track of this, you will have to allocate some scratch space for each
byte of each possible board. This does not seem like alot of memory.



	Ned Arnold
        APS

Navigate by Date:
Prev: Need to use a board in various configurations. Bill Brown
Next: Re: Need to use a board in various configurations. winans
Index: <19941995  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: Need to use a board in various configurations. Bill Brown
Next: Re: Need to use a board in various configurations. winans
Index: <19941995  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·