aboutsummaryrefslogtreecommitdiffstats
path: root/src/sensor_hx71x.c
Commit message (Collapse)AuthorAgeFilesLines
* sensor_hx71x: Update Sensors to report to load_cell_probeGareth Farrington2025-05-291-0/+16
| | | | Signed-off-by: Gareth Farrington <gareth@waves.ky>
* sensor_hx71x: Signal an overflow from the timer handlerKevin O'Connor2024-08-141-10/+18
| | | | | | | | Check for overflows in the timer handler instead of checking the elapsed query time. This should be a better check as it also accounts for task delays that occur before the query starts. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* src: Current code produces warnings for possible value overflows. (#6665)Bevan Weiss2024-08-141-2/+2
| | | | | | | | | | 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>
* hx71x: Load Cell Skeleton and HX71x bulk ADCGareth Farrington2024-07-311-0/+245
* Create the load_cell host module skeleton to create the sensors and start taking samples. * Add support for the HX717 and HX711 ADC sensors. Signed-off-by: Gareth Farrington <gareth@waves.ky>