Skip to content
Commit 138f9777 authored by Jakub Zymelka's avatar Jakub Zymelka Committed by Benjamin Cabé
Browse files

drivers: adc: nrfx: enable negative values for single-ended ADC readings



The ADC driver API already supports ADC readings which can return signed
values, these are differential readings. In Nordic's datasheet, we have
a mode called "single ended", but its just a name. "Single ended" is a
differential reading, with the negative channel tied to GND. This is not
compatible with zephyrs definition of a single ended reading.

To support Nordic's "single ended" mode, the user must configure
a differential reading, with the negative input tied to ground, which
the saadc driver can then use to configure the reading as Nordic SAADC
"single ended", and return negative values as expected.

Signed-off-by: default avatarJakub Zymelka <jakub.zymelka@nordicsemi.no>
parent 93d33faa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment