26 lines
680 B
Plaintext
26 lines
680 B
Plaintext
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig QMC5883P
|
|
bool "QST QMC5883P 3-axis magnetometer"
|
|
depends on DT_HAS_MISAKI_QMC5883P_ENABLED
|
|
select I2C
|
|
select SENSOR
|
|
default y
|
|
help
|
|
QST QMC5883P 3-axis magnetometer over I2C.
|
|
Zephyr has no upstream driver (the QMC5883L register map is
|
|
incompatible), so this module implements the QMC5883P registers
|
|
per its datasheet: normal mode at 100 Hz, 16-bit two's complement
|
|
output, field range configurable via the 'range' devicetree
|
|
property. Output is standard SENSOR_CHAN_MAGN_XYZ in Gauss.
|
|
|
|
if QMC5883P
|
|
|
|
config QMC5883P_LOG_LEVEL
|
|
int "QMC5883P log level"
|
|
depends on LOG
|
|
range 0 4
|
|
default 3
|
|
|
|
endif # QMC5883P
|