335278d60a
Implement sensing_init(): 1) create sensors from device tree 2) sequence sensors following node dependency ordering rule generated by Zephyr DTS 3) initial each sensor, includes: a) creating sensor connection between reporter and client, b) calling sensor init callback, c) setting sensor state Implement sensing_open_sensor(): 1) malloc connection from reporter to application 2) bind connection Implement sensing_close_sensr(): 1) unbind connection 2) free connection from reporter to application Implement sensing_set_config(): 1) call set_interval 2) cann set_sensitivity Implement sensing_get_config(): 1) call get_interval 2) call get_sensitivity Signed-off-by: Guangfu Hu <guangfu.hu@intel.com>
30 lines
751 B
Plaintext
30 lines
751 B
Plaintext
# Copyright (c) 2023 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config SENSING
|
|
bool "Sensing Subsystem"
|
|
default y
|
|
depends on DT_HAS_ZEPHYR_SENSING_ENABLED
|
|
help
|
|
Enable Sensing Subsystem.
|
|
|
|
if SENSING
|
|
|
|
module = SENSING
|
|
module-str = sensing
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
config SENSING_MAX_SENSITIVITY_COUNT
|
|
int "maximum sensitivity count one sensor could support"
|
|
depends on SENSING
|
|
default 6
|
|
help
|
|
This is the maximum sensitivity count one sensor could support,
|
|
some sensors such as ALS sensor could define different sensitivity for each data filed,
|
|
So, maximum sensitivity count is needed for sensors
|
|
Typical values are 6
|
|
|
|
source "subsys/sensing/sensor/phy_3d_sensor/Kconfig"
|
|
|
|
endif # SENSING
|