Go to the source code of this file.
|
| #define | MODULE "example_hand_motion_detection" |
| |
|
| static void | reinit_hand_motion_detection_state (hand_motion_detection_handle_t *handle) |
| |
| static void | set_sensor_config (const hand_motion_detection_config_t *hand_motion_detection_config, acc_config_t *sensor_config) |
| |
| static void | set_processing_config (const hand_motion_detection_config_t *hand_motion_detection_config, acc_detector_presence_processing_config_t *processing_config) |
| |
| static hand_motion_detection_detection_state_t | process_presence_processing_result (hand_motion_detection_handle_t *handle, const acc_detector_presence_processing_result_t *presence_processing_result) |
| |
| static void | determine_app_mode (hand_motion_detection_handle_t *handle, hand_motion_detection_result_t *result) |
| |
| static void | swap_app_mode (hand_motion_detection_handle_t *handle, hand_motion_detection_app_mode_t new_app_mode) |
| |
| hand_motion_detection_config_t * | hand_motion_detection_config_create (void) |
| | Create a hand motion configuration. More...
|
| |
| void | hand_motion_detection_config_destroy (hand_motion_detection_config_t *config) |
| | Destroy a hand motion configuration. More...
|
| |
| void | hand_motion_detection_set_config (hand_motion_detection_preset_t preset, hand_motion_detection_config_t *config) |
| | Set config specified by the preset. More...
|
| |
| 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. More...
|
| |
| void | hand_motion_detection_handle_destroy (hand_motion_detection_handle_t *handle) |
| | Destroy a hand_motion handle. More...
|
| |
| void | hand_motion_detection_config_log (hand_motion_detection_handle_t *handle) |
| | Print configuration. More...
|
| |
| bool | hand_motion_detection_get_buffer_size (hand_motion_detection_handle_t *handle, uint32_t *buffer_size) |
| | Get buffer size needed. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
◆ MODULE
| #define MODULE "example_hand_motion_detection" |
◆ determine_app_mode()
◆ hand_motion_detection_config_create()
◆ hand_motion_detection_config_destroy()
◆ hand_motion_detection_config_log()
◆ hand_motion_detection_get_buffer_size()
Get buffer size needed.
- Parameters
-
| [in] | handle | The hand motion handle |
| [out] | buffer_size | Buffer size needed |
- Returns
- True if successful, otherwise false
Definition at line 269 of file example_hand_motion_detection.c.
◆ hand_motion_detection_handle_create()
Create a hand_motion handle.
The handle is used only for processing
- Parameters
-
| [in] | hand_motion_detection_config | hand motion configuration |
| [in] | sensor_id | Sensor id |
- Returns
- A hand_motion handle, or NULL if creation failed
Definition at line 137 of file example_hand_motion_detection.c.
◆ hand_motion_detection_handle_destroy()
◆ hand_motion_detection_prepare()
Prepare hand motion.
- Parameters
-
| [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 |
- Returns
- True if successful, otherwise false
Definition at line 295 of file example_hand_motion_detection.c.
◆ hand_motion_detection_process()
Process Sparse IQ data.
- Parameters
-
| [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.
◆ hand_motion_detection_set_config()
Set config specified by the preset.
- Parameters
-
| [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.
◆ process_presence_processing_result()
◆ reinit_hand_motion_detection_state()
◆ set_processing_config()
◆ set_sensor_config()
◆ swap_app_mode()