Subject: |
Re: Need to use a board in various configurations. |
From: |
[email protected] (Bill Brown) |
Date: |
Tue, 12 Jul 94 15:06:26 PDT |
I want to do a little "thinking out loud" here .
You said:
> The device init (NOT init_record) gets called twice at initialization time.
> The second time is after all records have been initialized. As each record
> calls the init_record entry of device support you could remember how each bit
> is being referenced by the records (you get bitt offset and number of bits).
> Then at the end configure the board. You can also look for conflicts and
> generate errors.
This implies that the dev init routine has to know about some hardware
stuff. Well, maybe not. Perhaps all that's needed is to add one entry
point in the driver stuff that expects a board #, a byte #, and a direction
(in or out) indicator to finally initialize the hardware.
But, since ioScan needs to know inputs from outputs, the logical place for
the direction information is in the driver control structures. devSupport
needs an entry point in the driver to call to get the address of the
structures so it can use them during dev_Init. But it really doesn't need
to know about the structure; all it needs is a pointer to the location
that has the direction information about the specified i/o board.
One more question - is there any defined limit on the size of a mbb[io]
PV? Since it seems like they may overlap byte boundries, this could get
tricky. The only _real_ problem I see the slight time-offset in the output/
input values which could result if the mbb[io] PV spans byte boundaries.
-bill
- Navigate by Date:
- Prev:
Re: Need to use a board in various configurations. Bill Brown
- Next:
Re: Re: Need to use a board in various configurations. mrk
- 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: Need to use a board in various configurations. Bill Brown
- Next:
Re: Re: Need to use a board in various configurations. mrk
- 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
|