|
|
#include <stdint.h>#include "acc_config.h"#include "acc_detector_presence.h"#include "acc_processing.h"Go to the source code of this file.
Data Structures | |
| struct | hand_motion_detection_algo_config_t |
| Hand motion algo configuration. More... | |
| struct | hand_motion_detection_config_t |
| Configuration for hand_motion. More... | |
| struct | hand_motion_detection_algo_result_t |
| Hand motion algo result. More... | |
| struct | hand_motion_detection_result_t |
| Result type. More... | |
Typedefs | |
| typedef struct hand_motion_detection_handle | hand_motion_detection_handle_t |
| hand motion handle More... | |
| typedef struct hand_motion_detection_handle hand_motion_detection_handle_t |
hand motion handle
Definition at line 19 of file example_hand_motion_detection.h.
| Enumerator | |
|---|---|
| HAND_MOTION_DETECTION_APP_MODE_PRESENCE | |
| HAND_MOTION_DETECTION_APP_MODE_HAND_MOTION | |
Definition at line 29 of file example_hand_motion_detection.h.
| Enumerator | |
|---|---|
| HAND_MOTION_DETECTION_STATE_NO_DETECTION | |
| HAND_MOTION_DETECTION_STATE_DETECTION | |
| HAND_MOTION_DETECTION_STATE_RETENTION | |
Definition at line 35 of file example_hand_motion_detection.h.
Definition at line 21 of file example_hand_motion_detection.h.
| hand_motion_detection_config_t* hand_motion_detection_config_create | ( | void | ) |
Create a hand motion configuration.
Definition at line 63 of file example_hand_motion_detection.c.
| void hand_motion_detection_config_destroy | ( | hand_motion_detection_config_t * | config | ) |
Destroy a hand motion configuration.
| [in] | config | Configuration to destroy |
Definition at line 81 of file example_hand_motion_detection.c.
| void hand_motion_detection_config_log | ( | hand_motion_detection_handle_t * | handle | ) |
Print configuration.
| [in] | handle | Handle to print config for |
Definition at line 240 of file example_hand_motion_detection.c.
| bool hand_motion_detection_get_buffer_size | ( | hand_motion_detection_handle_t * | handle, |
| uint32_t * | buffer_size | ||
| ) |
Get buffer size needed.
| [in] | handle | The hand motion handle |
| [out] | buffer_size | Buffer size needed |
Definition at line 269 of file example_hand_motion_detection.c.
| hand_motion_detection_handle_t* hand_motion_detection_handle_create | ( | const hand_motion_detection_config_t * | hand_motion_detection_config, |
| acc_sensor_id_t | sensor_id | ||
| ) |
Create a hand_motion handle.
The handle is used only for processing
| [in] | hand_motion_detection_config | hand motion configuration |
| [in] | sensor_id | Sensor id |
Definition at line 137 of file example_hand_motion_detection.c.
| void hand_motion_detection_handle_destroy | ( | hand_motion_detection_handle_t * | handle | ) |
Destroy a hand_motion handle.
| [in] | handle | The hand_motion handle to destroy |
Definition at line 207 of file example_hand_motion_detection.c.
| bool hand_motion_detection_prepare | ( | hand_motion_detection_handle_t * | handle, |
| acc_sensor_t * | sensor, | ||
| const acc_cal_result_t * | cal_result, | ||
| void * | buffer, | ||
| uint32_t | buffer_size, | ||
| bool | force_prepare | ||
| ) |
Prepare hand motion.
| [in] | handle | The hand motion handle |
| [in] | sensor | Sensor to prepare |
| [in] | cal_result | Sensor calibration result |
| [in] | buffer | Data buffer |
| [in] | buffer_size | Size of data buffer |
| [in] | force_prepare | Force executing prepare |
Definition at line 295 of file example_hand_motion_detection.c.
| void hand_motion_detection_process | ( | hand_motion_detection_handle_t * | handle, |
| void * | buffer, | ||
| hand_motion_detection_result_t * | hand_motion_detection_result | ||
| ) |
Process Sparse IQ data.
| [in] | handle | The hand_motion handle |
| [in] | buffer | Data buffer |
| [out] | hand_motion_detection_result | Result processed by hand_motion |
Definition at line 322 of file example_hand_motion_detection.c.
| void hand_motion_detection_set_config | ( | hand_motion_detection_preset_t | preset, |
| hand_motion_detection_config_t * | config | ||
| ) |
Set config specified by the preset.
| [in] | preset | The preset used to set hand motion config |
| [out] | config | The hand motion config to be set |
Definition at line 94 of file example_hand_motion_detection.c.