Open machschmitt opened 2 days ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
According to reports, "the AD4170 drivers don't do a sign extension when reading the ADC registers, as the ADC is 24 bits, but the int variable is 32-bit, it fills the 4th bit with zeroes even if bit 23 is 1."
The ADC output code is two's complement when the channel setup has the bipolar field configured in the AFE register. Sign extend ADC data when the channel is in bipolar configuration.