The daily goal tables, host-testable off-device. More...
#include "health/goals.h"Functions | |
| static int | goal_at (const int16_t *table, uint8_t count, uint8_t index) |
| A table's entry for a menu choice, or its first entry for a choice past the end. | |
| int | goals_steps (uint8_t index) |
| The step goal for a menu choice. | |
| int | goals_distance_m (uint8_t index) |
| The distance goal for a menu choice, in metres. | |
| int | goals_calories (uint8_t index) |
| The active calorie goal for a menu choice. | |
| int | goals_active_min (uint8_t index) |
| The active minutes goal for a menu choice. | |
| int | goals_sleep_min (uint8_t index) |
| The sleep goal for a menu choice, in minutes. | |
| int | goals_hr_limit (uint8_t index) |
| The heart rate limit for a menu choice, the top of a heart rate bar. | |
The daily goal tables, host-testable off-device.
goal-rows.spec.ts reads these tables as text and checks them against the page's, so each one stays a plain list of numbers.
|
static |
A table's entry for a menu choice, or its first entry for a choice past the end.
| table | The goals, in menu order. |
| count | How many the table holds. |
| index | The saved choice. |