19 lines
318 B
C
19 lines
318 B
C
#ifndef CONTROLLER_PERIOD_H
|
|
#define CONTROLLER_PERIOD_H
|
|
|
|
#include <stdint.h>
|
|
#include <time.h>
|
|
|
|
typedef struct
|
|
{
|
|
uint16_t start;
|
|
uint16_t end;
|
|
} period_t;
|
|
|
|
period_t*
|
|
period_create(uint16_t start, uint16_t end);
|
|
|
|
int
|
|
period_includes_time(period_t *period, uint16_t timestamp);
|
|
|
|
#endif /* CONTROLLER_PERIOD_H */
|