CONFIG_LIS2DS12_FS

Accelerometer full-scale range

Type: int

Help

Specify the default accelerometer full-scale range. An X value for the config represents a range of +/- X G. Valid values are: 0: Full Scale selected at runtime 2: +/- 2g 4: +/- 4g 8: +/- 8g 16: +/- 16g

Direct dependencies

LIS2DS12 && SENSOR

(Includes any dependencies from ifs and menus.)

Default

  • 0

Kconfig definition

At <Zephyr>/drivers/sensor/lis2ds12/Kconfig:58

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:32<Zephyr>/drivers/Kconfig:62<Zephyr>/drivers/sensor/Kconfig:111

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

config LIS2DS12_FS
    int "Accelerometer full-scale range"
    default 0
    depends on LIS2DS12 && SENSOR
    help
      Specify the default accelerometer full-scale range.
      An X value for the config represents a range of +/- X G. Valid values
      are:
      0:  Full Scale selected at runtime
      2:  +/- 2g
      4:  +/- 4g
      8:  +/- 8g
      16: +/- 16g

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