|
| uint32_t | kalg_state_size (void) |
| | Get the size of the algorithm state.
|
| |
| bool | kalg_init (KAlgState *state, KAlgStatsCallback stats_cb) |
| | Initialize the algorithm state.
|
| |
| void | kalg_deinit (KAlgState *state) |
| | Release the resources held by the state.
|
| |
| uint32_t | kalg_analyze_samples (KAlgState *state, AccelRawData *samples, uint32_t num_samples, uint32_t *consumed_samples) |
| | Analyze accelerometer samples.
|
| |
| void | kalg_minute_stats (KAlgState *state, uint16_t *vmc, uint8_t *orientation, bool *still) |
| | Get the last minute's stats and reset them for the next minute.
|
| |
| uint32_t | kalg_analyze_finish_epoch (KAlgState *state) |
| | Process the partial epoch not yet processed by kalg_analyze_samples() (unit tests).
|
| |
| void | kalg_activities_update (KAlgState *state, time_t utc_now, uint16_t steps, uint16_t vmc, uint8_t orientation, bool definitely_not_worn, uint32_t resting_calories, uint32_t active_calories, uint32_t distance_mm, bool shutting_down, KAlgActivitySessionCallback sessions_cb, void *context) |
| | Feed a minute of data to the walk, run and sleep detectors.
|
| |
| time_t | kalg_activity_last_processed_time (KAlgState *state, KAlgActivityType activity) |
| | Get the last minute processed for an activity type.
|
| |
| void | kalg_get_sleep_stats (KAlgState *state, KAlgOngoingSleepStats *stats) |
| | Get the ongoing sleep statistics.
|
| |
| void | kalg_enable_activity_tracking (KAlgState *kalg_state, bool enable) |
| | Enable or disable automatic activity session detection.
|
| |
| bool | kalg_activity_hrm_is_active (KAlgState *kalg_state) |
| | Check whether a continuous heart rate session is active for a detected activity.
|
| |
| void | kalg_activity_hrm_set_paused (KAlgState *kalg_state, bool paused) |
| | Pause or resume the heart rate sessions of detected activities.
|
| |