libsimpleioADC_get_scale Method |
Get the scale factor for the specified Linux IIO A/D converter
input.
Namespace: IO.BindingsAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2025.251.1
Syntaxpublic static void ADC_get_scale(
int chip,
int channel,
out double scale,
out int error
)
Parameters
- chip Int32
- Linux IIO device number.
- channel Int32
- Input channel number.
- scale Double
- Scale factor in volts per ADC step.
- error Int32
- Error code. Zero upon success or an errno
value upon failure.
Remarks
This function requires the ADC device to implement scaling, which may
require a special device tree overlay that configures a
voltage reference with the
vref-supply property. The
vref-supply property may requre a ficticious voltage regulator.
See
MUNTS-0018.dts
for an example.
See Also