The rules a face hands the store. More...
#include <health_store.h>
Data Fields | |
| bool | live |
| True subscribes the health service and false just keeps the fake data for screenshots. | |
| const HealthPart * | hr_history |
| HEALTH_HR_HISTORY for a face that graphs the last hour of heart rate, or NULL. | |
| const HealthPart * | step_history |
| HEALTH_STEP_HISTORY for a face that graphs today's steps by the hour, or NULL. | |
| const HealthPart * | hr_day |
| HEALTH_HR_DAY for a face that charts today's heart rate by the hour, or NULL. | |
| bool | sleep |
| Read the sleep total. | |
| bool | active |
| Read the active minutes total. | |
| bool | calories |
| Read the active calories total. | |
| bool | distance |
| Read the walked distance, including for a steps readout that can show it instead. | |
| uint16_t | hrv_period_sec |
| How often the watch takes a burst of beat gaps, in seconds, or 0 for no HRV. | |
| uint16_t | hrv_still_mg |
| The most the wrist may move for a burst to be still, in milli-g a sample, or 0 for HRV_MOTION_STILL_DEFAULT. | |
| uint16_t | hrv_walk_steps |
| The steps through a burst that make it a walk, or 0 for HRV_WALK_STEPS_DEFAULT. | |
| uint16_t | hrv_settle_gaps |
| Gaps left out at the start of each burst while the sensor settles, or 0 for HRV_SETTLE_GAPS. Held to 1 to HRV_SETTLE_GAPS_MAX. | |
| HrvCount | hrv_count |
| Which bursts count for the main reading. The default leaves out walking ones. | |
| bool | hrv_keep_all |
| Measure a burst that cannot count rather than drop it, for a panel that shows walking readings. | |
| bool | hrv_live_redraw |
| Redraw once a second while a burst is held, for a panel that shows the burst as it happens. | |
| uint32_t | hrv_persist_key |
| Slot for the saved HRV readings, or 0 to keep them in memory only. | |
| uint32_t | persist_key |
| Slot for the saved heart rate graph, so the face owns the key instead of the store. | |
The rules a face hands the store.