Loading...
Searching...
No Matches
HrvLog Struct Reference

The readings kept, in the shape that goes to flash. Start it with hrv_log_reset. More...

#include <hrv_log.h>

Data Fields

uint32_t at_min [HRV_LOG_SLOTS]
 When each kept reading was taken, in minutes, or 0 for an empty slot.
uint32_t state_at_min [HRV_STATE_COUNT]
 When the latest reading of each kind was taken, or 0 for none.
uint32_t night_last_min
 When the last reading taken asleep came, or 0 for none.
int32_t today
 The day the hourly totals belong to.
uint16_t hour_sum [HRV_LOG_HOURS]
 Today's resting readings added up by the hour.
uint16_t night_sum
 The readings taken asleep this night, added up.
uint8_t ms [HRV_LOG_SLOTS]
 Each kept reading in ms.
uint8_t flags [HRV_LOG_SLOTS]
 Each kept reading's HrvState, plus HRV_LOG_ASLEEP.
uint8_t hour_count [HRV_LOG_HOURS]
 How many readings went into each hour's total.
uint8_t state_ms [HRV_STATE_COUNT]
 The latest reading of each kind in ms.
uint8_t night_count
 How many readings went into the night's total.
uint8_t head
 The slot the next reading goes in.

Detailed Description

The readings kept, in the shape that goes to flash. Start it with hrv_log_reset.

Every field is a fixed width and the larger ones come first, so the layout is the same on the watch and in a spec, and the whole of it fits one persist slot.


The documentation for this struct was generated from the following file: