Guangfu Hu
|
335278d60a
|
sensing: initial sensor list and enumerate each sensor
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>
|
2023-06-17 07:43:25 -04:00 |
|