|
| bool | health_db_get_typical_value (ActivityMetric metric, enum pbl_weekday day, int32_t *value_out) |
| | Get the typical value of a metric for a weekday.
|
| |
| bool | health_db_get_monthly_average_value (ActivityMetric metric, int32_t *value_out) |
| | Get the average value of a metric over the last month.
|
| |
| bool | health_db_get_typical_step_averages (enum pbl_weekday day, ActivityMetricAverages *averages) |
| | Get the typical step counts of a weekday, also known as "typical steps".
|
| |
| bool | health_db_set_typical_values (ActivityMetric metric, enum pbl_weekday day, uint16_t *values, int num_values) |
| | Store typical step values for a weekday, for test and debug purposes only.
|
| |
| void | health_db_init (void) |
| | Initialize the health database.
|
| |
| status_t | health_db_insert (const uint8_t *key, int key_len, const uint8_t *val, int val_len) |
| | Insert or replace a record in the health database.
|
| |
| int | health_db_get_len (const uint8_t *key, int key_len) |
| | Get the length of a record in the health database.
|
| |
| status_t | health_db_read (const uint8_t *key, int key_len, uint8_t *val_out, int val_out_len) |
| | Read a record from the health database.
|
| |
| status_t | health_db_delete (const uint8_t *key, int key_len) |
| | Delete a record from the health database.
|
| |
| status_t | health_db_flush (void) |
| | Delete all records of the health database.
|
| |
| status_t | health_db_compact (void) |
| | Compact the settings file backing the health database.
|
| |