Rounds up a desired sensitivity of an ST IMU sensor `SEN` to one of [S0, S1, S2, S3]
st-imu-round-sensitivity
@/st-imu-round-sensitivity
Deprecated: Use `xod-dev/st-mems/round-sensitivity` instead.
Rounds up a desired sensitivity of an ST IMU sensor `SEN` to one of [S0, S1, S2, S3]
IDXnumber
Sensitivity level index, e.g. 0-th, 1-th, 2-th, or 3-th
REGnumber
Value for CTRL_REG4 to set the sensitivity selected
S0 | S1 | S2 | S3 | SEN | REG | IDX |
---|
2 | 4 | 1000 | 8 | 2 | 0 | 0 | // lis331dlh |
| | | | -1 | 0 | 0 |
| | | | 3 | 0 | 0 |
| | | | 4 | 16 | 1 |
| | | | 7 | 16 | 1 |
| | | | 8 | 48 | 3 |
| | | | 100 | 48 | 3 |
| | | | 1000 | 48 | 3 |
2 | 4 | 8 | 16 | 2 | 0 | 0 | // lis3dh |
| | | | -1 | 0 | 0 |
| | | | 5 | 16 | 1 |
| | | | 9 | 32 | 2 |
| | | | 15 | 32 | 2 |
| | | | 16 | 48 | 3 |
| | | | 20 | 48 | 3 |