st-imu-round-sensitivity

xod/common-hardware/st-imu-round-sensitivity

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]
SENnumber
Sensitivity value as requested by user.
S0number
Level 1 sensitivity provided by the sensor, e.g. ±2g
S1number
Level 2 sensitivity provided by the sensor, e.g. ±4g
S2number
Level 3 sensitivity provided by the sensor, e.g. ±8g
S3number
Level 4 sensitivity provided by the sensor, e.g. ±16g
st-imu-round-sensitivity
SEN
S0
S1
S2
S3
REG
IDX
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

Tabular tests

S0S1S2S3SENREGIDX
2410008200// lis331dlh
-100
300
4161
7161
8483
100483
1000483
24816200// lis3dh
-100
5161
9322
15322
16483
20483