Here you have three entries per channel:voltage
in_voltageX_raw -> the sample raw value
in_voltageX_scale -> the scale to multiply the raw value to get the
in mV in_voltageX_scale_available -> lists the available scales of the
channel
For example for channel 0:
# cat in_voltage0_scale_available
0.451660156 0.903320312 (two scales available, first with divider by two
disabled, second with divider by two enabled)
# cat in_voltage0_scale
0.451660156 (divider by two is currently disabled)
# cat in_voltage0_raw (shows measured value)
1000
If you multiply the value by the scale you get: 1000 * 0.451660156 = 451.6
mV
# echo 0.903320312 > in_voltage0_scale (enables the divider by two)
Ok, so I have to remember this value : '0.903320312' in case I want to enable
divide-by-two functionality?
Hmmmm ... why would this interface not work:
echo 2 > in_voltage0_scale
or
echo 1 > in_voltage0_scale