Go to the documentation of this file.
7 #ifndef REF_APP_BREATHING_H_
8 #define REF_APP_BREATHING_H_
uint16_t time_series_length_s
@ REF_APP_BREATHING_APP_STATE_ESTIMATE_BREATHING_RATE
bool ref_app_breathing_prepare(ref_app_breathing_handle_t *handle, ref_app_breathing_config_t *config, acc_sensor_t *sensor, const acc_cal_result_t *sensor_cal_result, void *buffer, uint32_t buffer_size)
Prepare the application to do a measurement.
@ REF_APP_BREATHING_APP_STATE_INIT
acc_cal_result_t sensor_cal_result
bool ref_app_breathing_get_buffer_size(ref_app_breathing_handle_t *handle, uint32_t *buffer_size)
Get the buffer size needed for the provided ref app breathing handle.
uint16_t highest_breathing_rate
The result from a completed calibration.
ref_app_breathing_handle_t * ref_app_breathing_create(ref_app_breathing_config_t *config)
Create a handle for the ref app breathing.
Breathing application results container.
void ref_app_breathing_destroy(ref_app_breathing_handle_t *handle)
Destroy a handle for the ref app breathing.
@ REF_APP_BREATHING_APP_STATE_INTRA_PRESENCE
ref_app_breathing_config_t * ref_app_breathing_config_create(void)
Create a configuration for the ref app breathing.
Presence detector results container.
acc_detector_presence_result_t presence_result
bool ref_app_breathing_process(ref_app_breathing_handle_t *handle, void *buffer, ref_app_breathing_result_t *result)
Process the data.
ref_app_breathing_app_state_t app_state
bool use_presence_processor
@ REF_APP_BREATHING_APP_STATE_NO_PRESENCE
void ref_app_breathing_config_destroy(ref_app_breathing_config_t *config)
Destory a configuration for the ref app breathing.
struct acc_detector_presence_config acc_detector_presence_config_t
@ REF_APP_BREATHING_APP_STATE_DETERMINE_DISTANCE
uint16_t num_dists_to_analyze
Breathing application config container.
uint16_t distance_determination_duration_s
uint16_t lowest_breathing_rate
struct acc_sensor acc_sensor_t
ref_app_breathing_app_state_t
State of the application.
acc_detector_presence_config_t * presence_config