Re: counter, pulse generator API, ni_660x.o

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 24 November 2003 04:34 am, Nils Juergens wrote:
> On Sun, 23.11.03, Frank Mori Hess <fmhess_at_users.sourceforge.net> wrote:
> > 	Could add fields for specifying what inputs are connected to (input 0
> > 	connected to external input pin, or internal oscillator?).
>
> This is needed to fit the counter of the pci-1710 into the scheme.
>
> > 	Could make triggers/actions more involved, for example "trigger on
> > 	accumulator reaches 0", or specify a value to reload the counter with
> > 	for the COMEDI_RESET_ACCUMULATOR action.  Could add an action that
> > 	sets the counter's output, like "pulse output when accumulator
> > reaches 0".
>
> This is also needed for the counter on the pci-1710 (which is one-third
> of an Intel 82C54). The counter has a mode setting which defines the
> usage of the gate input, but also what happens when the accumulator
> reaches zero.
>
> It would be nice if you could extend the api with those two.
>
> Thanks,
>
> Nils

Feel free to modify the API to suit your needs.  I myself am having an 
increasingly difficult time seeing the benefit of coming up with a 
completely general counter API.  When I look at it, it feels too abstract 
and far away from the actual programmability of the hardware.  I'd be more 
comfortable just adding a '8253/8254 counter mode' configuration 
instruction, and similar things.  Then after we get support for a few 
different types of counters, it would be more clear where adding a little 
abstraction would give a payoff.

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/ySPz5vihyNWuA4URAifnAJ9Jk/n/vu9fhVhuGcTMN0jP8Qcp6QCgkr0I
mIG+qkniMPT3l2IIVia4MqE=
=C4Pi
-----END PGP SIGNATURE-----

Received on 2003-11-29Z22:55:47