42 lines
815 B
Plaintext
42 lines
815 B
Plaintext
# 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
|
|
select 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
|