1# BMC150 magnetometer sensor configuration options
2
3# Copyright (c) 2016 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig BMC150_MAGN
7	bool "BMC150_MAGN I2C Magnetometer Chip"
8	default y
9	depends on DT_HAS_BOSCH_BMC150_MAGN_ENABLED
10	select I2C
11	help
12	  Enable driver for BMC150 I2C-based magnetometer sensor.
13
14if BMC150_MAGN
15
16menu "Attributes"
17
18choice
19	prompt "Default preset"
20	default BMC150_MAGN_PRESET_REGULAR
21	help
22	  Specify the default preset (x/y oversampling, z oversampling, sampling
23	  frequency).
24
25config BMC150_MAGN_PRESET_LOW_POWER
26	bool "Low power (3, 3, 10)"
27
28config BMC150_MAGN_PRESET_REGULAR
29	bool "Regular (9, 15, 10)"
30
31config BMC150_MAGN_PRESET_ENHANCED_REGULAR
32	bool "Enhanced regular (15, 27, 10)"
33
34config BMC150_MAGN_PRESET_HIGH_ACCURACY
35	bool "High accuracy (47, 83, 20)"
36
37endchoice
38
39config BMC150_MAGN_SAMPLING_RATE_RUNTIME
40	bool "Dynamic sampling rate"
41	help
42	  Enable alteration of sampling rate attribute at runtime.
43
44config BMC150_MAGN_SAMPLING_REP_XY
45	bool "Dynamic XY oversampling"
46	help
47	  Enable alteration of XY oversampling at runtime.
48
49config BMC150_MAGN_SAMPLING_REP_Z
50	bool "Dynamic Z oversampling"
51	help
52	  Enable alteration of Z oversampling at runtime.
53
54endmenu
55
56config BMC150_MAGN_TRIGGER
57	bool "Triggers"
58	depends on GPIO
59	help
60	  Enable triggers for BMC150 magnetometer
61
62config BMC150_MAGN_TRIGGER_THREAD_STACK
63	int "Thread stack size"
64	depends on BMC150_MAGN_TRIGGER
65	default 1024
66	help
67	  Specify the internal thread stack size.
68
69config BMC150_MAGN_TRIGGER_DRDY
70	bool "Data ready trigger"
71	depends on BMC150_MAGN_TRIGGER
72	help
73	  Enable data ready interrupt for BMC150 magnetometer
74
75endif # BMC150_MAGN
76