Loading...
Searching...
No Matches
hour_latch.c File Reference

The hourly buzz latch, host-testable off-device. More...

#include "clock/hour_latch.h"

Functions

time_t hour_latch_start (time_t now, int tm_min, int tm_sec)
 When the local hour holding a moment began, as seconds since the epoch.
bool hour_latch_take (HourLatch *latch, int tick_min, time_t start)
 Whether a tick should buzz the hour, and if so, marks the hour as buzzed.
void hour_latch_seed (HourLatch *latch, time_t start)
 Marks an hour as buzzed without buzzing it.

Detailed Description

The hourly buzz latch, host-testable off-device.