Skip to contentSkip to conversation

Voltage scale, milli or micro?

DISCUSSION Lars-Peter Clausen 2 participants 2 messages Mar 4, 2013 IIO

lore
Share & tools
lore
#0 lore raw

Hi,

So according to our documentation the voltage channel scale is in microvolts, but for some odd reason almost all drivers report the scale in millivolts. In the IIO hwmon bridge we also have this comment "Assumes that IIO and hwmon operate in the same base units. This is supposed to be true, but needs verification for new channel types." and hwmon also uses millivolts. So I'm wondering should we fix all our drivers to match the specification or should we update the specification to match reality. I would prefer the later.

- Lars

maintainer
#1 lore raw
Quoted 11 lines · Lars-Peter Clausen

Hi,

So according to our documentation the voltage channel scale is in microvolts, but for some odd reason almost all drivers report the scale in millivolts. In the IIO hwmon bridge we also have this comment "Assumes that IIO and hwmon operate in the same base units. This is supposed to be true, but needs verification for new channel types." and hwmon also uses millivolts. So I'm wondering should we fix all our drivers to match the specification or should we update the specification to match reality. I would prefer the later.

Definitely go with updating the spec given nothing conforms to it anyway. Guess we'll have to check that though.

Jonathan

Quoted 2 lines

- Lars