aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/Hrs3300.h
Commit message (Collapse)AuthorAgeFilesLines
* Atomic HRS reads (#1845)mark90642024-09-221-4/+6
| | | | | | | | | | - Combine the reading of all `HRS3300` registers into one I2C read so data is not partial - Downsizes both HRS and ALS to 16bit as the sensor does not generate larger than 16bit values in its current configuration - Increasing the resolution by 1 bit doubles the sensor acquisition time, since we are already at 10Hz we are never going to use a higher resolution - The PPG algorithm buffers for ALS/HRS are already 16bit anyway - Remove functions for setting gain / drive that are unused throughout the codebase - Calculate constants with constexpr
* changed ReadHrs and ReadAls to uint32, and did static_cast instead of hidden ↵Yehoshua Pesach Wallach2021-12-131-2/+2
| | | | cast when using it
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-1/+1
| | | | | | | Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
* Changed access modified indentationAvamander2021-04-241-2/+2
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-3/+2
|
* First implementation of the HR sensor using 100% foss code (ported from waspos)Jean-François Milants2021-01-101-0/+47