blob: c522dac9861e20afe40d1551a76088c5081746b3 [file] [log] [blame]
# LSM303DLHC Three Axis Magnetometer configuration options
# Copyright (c) 2018 Philémon Jaermann
# SPDX-License-Identifier: Apache-2.0
menuconfig LSM303DLHC_MAGN
bool "LSM303DLHC Three Axis Magnetometer"
default y
depends on DT_HAS_ST_LSM303DLHC_MAGN_ENABLED
depends on I2C
help
Enable driver for LSM303DLHC I2C-based triaxial magnetometer sensor.
config LSM303DLHC_MAGN_RANGE
int "Magnetometer measurement range"
depends on LSM303DLHC_MAGN
range 1 7
default 1
help
1: +/-1.3 gauss
2: +/-1.9 gauss
3: +/-2.5 gauss
4: +/-4 gauss
5: +/-4.7 gauss
6: +/-5.6 gauss
7: +/-8.1 gauss
config LSM303DLHC_MAGN_ODR
int "Data rate frequency"
depends on LSM303DLHC_MAGN
range 0 7
default 0
help
0: 0.75Hz
1: 1.5 Hz
2: 3Hz
3: 7.5Hz
4: 15Hz
5: 30Hz
6: 75Hz
7: 220Hz