-
CONFIG_AK8975_I2C_ADDR
¶
I2C address
Type: hex
Help¶
I2C address of the AK8975 sensor. Choose:
- 0x0C if CAD1 connected to GND and CAD0 is connected to GND
- 0x0D if CAD1 connected to GND and CAD0 is connected to VDD
- 0x0E if CAD1 connected to VDD and CAD0 is connected to GND
- 0x0F if CAD1 connected to VDD and CAD0 is connected to VDD
If the AK8975 sensor is part of a MPU9159 chip, the I2C address needs to be 0x0C.
Kconfig definition¶
At drivers/sensor/ak8975/Kconfig:22
Included via Kconfig:10
→ Kconfig.zephyr:29
→ drivers/Kconfig:64
→ drivers/sensor/Kconfig:44
Menu path: (top menu) → Device Drivers → Sensor Drivers → AK8975 Magnetometer
config AK8975_I2C_ADDR hex prompt "I2C address" ifAK8975
&&SENSOR
range 0x0C 0x0F ifAK8975
&&SENSOR
default 0x0C ifAK8975
&&SENSOR
depends onAK8975
&&SENSOR
help I2C address of the AK8975 sensor. Choose: - 0x0C if CAD1 connected to GND and CAD0 is connected to GND - 0x0D if CAD1 connected to GND and CAD0 is connected to VDD - 0x0E if CAD1 connected to VDD and CAD0 is connected to GND - 0x0F if CAD1 connected to VDD and CAD0 is connected to VDD If the AK8975 sensor is part of a MPU9159 chip, the I2C address needs to be 0x0C.
(Definitions include propagated dependencies, including from if’s and menus.)