analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
971 stars 1.67k forks source link

adc: ad405x: Fix AD4052 Production ID and Data format reset value. #2343

Closed gastmaier closed 1 month ago

gastmaier commented 1 month ago

Pull Request Description

According to the ad4052 datasheet

PRODUCT_ID_L.PRODUCT_ID        value is 0x72                          (p. 54)
ADC_MODES.DATA_FORMAT    reset value is 0x01 Twos Complement (Signed) (p. 58)

For the data_fomat, the ad405x iio driver on pcf always write this register on init, so this mistake only affects users leveraging the no-OS driver directly. The first should affect all.

PR Type

PR Checklist