# BMA4XX 3-axis accelerometer config options
#
# Copyright (c) 2023 Google LLC
# Copyright (c) 2024 Croxel Inc.
# Copyright (c) 2024 Cienet
#
# SPDX-License-Identifier: Apache-2.0

menuconfig BMA4XX
	bool "BMA4XX 3-axis acceleration sensor"
	default y
	depends on DT_HAS_BOSCH_BMA4XX_ENABLED
	depends on SENSOR_ASYNC_API
	select I2C
	select I2C_RTIO
	select RTIO_WORKQ
	help
	  Enable driver for Bosch BMA4XX (I2C-based)

if BMA4XX

config BMA4XX_TEMPERATURE
	bool "Allow reading the BMA4XX die temperature"
	default n
	help
	  Allow reading the BMA4xx's on-chip temperature sensor. This creates
	  extra bus activity and increases code size.

config EMUL_BMA4XX
	bool "Emulator for the BMA4XX"
	default y
	depends on EMUL
	help
	  Enable the hardware emulator for the BMA4XX. Doing so allows exercising
	  sensor APIs for this sensor in native_sim and qemu.

config BMA4XX_STREAM
	bool "Use hardware FIFO to stream data"
	default y
	depends on GPIO
	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMA4XX),int1-gpios)
	help
	  Use this config option to enable streaming sensor data via RTIO subsystem.

endif # BMA4XX
