All of lore.kernel.org
 help / color / mirror / Atom feed
* IIO: Interface for capacitance inputs (and outputs)
@ 2011-08-01 17:21 Jonathan Cameron
  2011-08-02  8:11 ` Michael Hennerich
  0 siblings, 1 reply; 7+ messages in thread
From: Jonathan Cameron @ 2011-08-01 17:21 UTC (permalink / raw)
  To: Hennerich, Michael, linux-iio@vger.kernel.org

Hi Michael / All,

We have a quite a few capacitance drivers. They are all simple and so
would be easy to clean up, except for the fact that we don't have an abi
for them.

So lets make one up. How about the following?  Main choice is the units...
Doing it with Farads leaves us with a lot of needed decimal places, but then
we need a lot anyway for these so what the heck.  We are going to need those
types with holes in them..

What:		/sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
What:		/sys/bus/iio/devices/iio:deviceX/out_capacitanceY_raw
What:		/sys/bus/iio/devices/iio:deviceX/in_capacitanceY-capacitanceZ_raw
KernelVersion:	3.1
Contact:	linux-iio@vger.kernel.org
Description:
		Raw (unscaled no bias removal etc) capacitance value from/to
		channel Y. After application of _offset and _scale, units will
		be Farads.

Additional entries for:

What:		/sys/bus/iio/devices/iio:deviceX/in_capacitanceY_offset
What:		/sys/bus/iio/devices/iio:deviceX/in_capacitanceY_scale


With the ad7745 the capdac does seem to be available off chip. If I understand
their use correctly it could just be treated as a _calibbias parameters?
(the complexity being that there are two..)  Naturally there is also a
calibration register so this gets somewhat tricky...  Is there an optimum
combination for a given desire measurement range?


All comments welcom.

Jonathan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-03 13:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-01 17:21 IIO: Interface for capacitance inputs (and outputs) Jonathan Cameron
2011-08-02  8:11 ` Michael Hennerich
2011-08-02  9:06   ` Jonathan Cameron
2011-08-02 14:58     ` Michael Hennerich
2011-08-02 15:18       ` Jonathan Cameron
2011-08-03 13:48         ` Michael Hennerich
2011-08-03 14:04           ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.