aboutsummaryrefslogtreecommitdiffstats
path: root/src/sensor_ads1220.c
Commit message (Collapse)AuthorAgeFilesLines
* src: Current code produces warnings for possible value overflows. (#6665)Bevan Weiss2024-08-141-1/+3
| | | | | | | | | | As the input values are uint8_t types, any shift may result in value loss. Explicit promotion to the output type (uint32_t) keeps things safe. Have also changed the int32_t in ads1220_read_adc to uint32_t, type promotion and bit manipulation are a bit 'weird' on signed integers, so keep it as an unsigned to align with following function call parameter type. Have retained the prior explicit sign extension logic however. Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
* ads1220: Add ADS1220 bulk sensor to load_cellGareth Farrington2024-07-311-0/+161
Add support for the ADS1220 as an alternative to HX71x that supports SPI and higher sample rates. Signed-off-by: Gareth Farrington <gareth@waves.ky>