CONFIG_IIS2DH_ODR

Accelerometer sampling frequency (ODR)

Type: int

Help

Specify the default accelerometer output data rate expressed in
samples per second (Hz).
0: ODR selected at runtime
1: 1 Hz
2: 10 Hz
3: 25 Hz
4: 50 Hz
5: 100 Hz
6: 200 Hz
7: 400 Hz
8: 1620 Hz (only LP)
9: Depends by mode. LP: 5376 Hz - NORM or HR: 1344 Hz

Direct dependencies

IIS2DH && SENSOR

(Includes any dependencies from ifs and menus.)

Default

  • 0

Kconfig definition

At <Zephyr>/drivers/sensor/iis2dh/Kconfig:69

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:42<Zephyr>/drivers/Kconfig:64<Zephyr>/drivers/sensor/Kconfig:107

Menu path: (Top) → Device Drivers → Sensor Drivers → IIS2DH I2C/SPI accelerometer sensor driver

config IIS2DH_ODR
    int "Accelerometer sampling frequency (ODR)"
    range 0 9
    default 0
    depends on IIS2DH && SENSOR
    help
      Specify the default accelerometer output data rate expressed in
      samples per second (Hz).
      0: ODR selected at runtime
      1: 1 Hz
      2: 10 Hz
      3: 25 Hz
      4: 50 Hz
      5: 100 Hz
      6: 200 Hz
      7: 400 Hz
      8: 1620 Hz (only LP)
      9: Depends by mode. LP: 5376 Hz - NORM or HR: 1344 Hz

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)