Go to the documentation of this file.
7 #ifndef EXAMPLE_HAND_MOTION_DETECTION_H_
8 #define EXAMPLE_HAND_MOTION_DETECTION_H_
@ HAND_MOTION_DETECTION_APP_MODE_HAND_MOTION
Result provided by the processing module.
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.
float detection_retention_duration
uint16_t sweeps_per_frame
hand_motion_detection_config_t * hand_motion_detection_config_create(void)
Create a hand motion configuration.
bool use_presence_detection
acc_detector_presence_result_t presence_result
Hand motion algo configuration.
hand_motion_detection_algo_config_t algo_config
The result from a completed calibration.
void hand_motion_detection_config_destroy(hand_motion_detection_config_t *config)
Destroy a hand motion configuration.
float sensor_to_water_distance
@ HAND_MOTION_DETECTION_STATE_RETENTION
float measurement_range_end
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.
hand_motion_detection_app_mode_t app_mode
acc_sensor_id_t sensor_id
acc_processing_result_t proc_result
Presence detector results container.
acc_detector_presence_config_t * presence_config
@ HAND_MOTION_DETECTION_APP_MODE_PRESENCE
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.
@ HAND_MOTION_DETECTION_PRESET_FAUCET
@ HAND_MOTION_DETECTION_STATE_DETECTION
struct acc_detector_presence_config acc_detector_presence_config_t
uint32_t acc_sensor_id_t
Type representing a sensor ID.
hand_motion_detection_preset_t
bool hand_motion_detection_get_buffer_size(hand_motion_detection_handle_t *handle, uint32_t *buffer_size)
Get buffer size needed.
hand_motion_detection_detection_state_t detection_state
bool presence_result_available
@ HAND_MOTION_DETECTION_STATE_NO_DETECTION
hand_motion_detection_algo_result_t algo_result
void hand_motion_detection_handle_destroy(hand_motion_detection_handle_t *handle)
Destroy a hand_motion handle.
hand_motion_detection_detection_state_t
void hand_motion_detection_set_config(hand_motion_detection_preset_t preset, hand_motion_detection_config_t *config)
Set config specified by the preset.
hand_motion_detection_app_mode_t
bool algo_result_available
@ HAND_MOTION_DETECTION_PRESET_NONE
float hand_detection_timeout
struct acc_sensor acc_sensor_t
void hand_motion_detection_config_log(hand_motion_detection_handle_t *handle)
Print configuration.
Configuration for hand_motion.