mains-frequency-counter-stm32/cube/User/Inc/networkAbstractionLayer.h

21 lines
400 B
C
Raw Normal View History

2021-02-16 10:37:09 +01:00
#ifndef _NETWORK_ABSTRACTION_LAYER_H_
#define _NETWORK_ABSTRACTION_LAYER_H_
2021-02-16 11:01:01 +01:00
#include <stdint.h>
#include <stdbool.h>
2021-02-16 11:18:41 +01:00
#include <sinkStruct.h>
2021-02-16 10:37:09 +01:00
2021-02-16 11:01:01 +01:00
typedef struct {
uint64_t seconds;
2021-02-16 11:04:45 +01:00
uint32_t missedUpdates;
2021-02-16 11:01:01 +01:00
bool valid;
} t_seconds;
2021-02-16 10:37:09 +01:00
void networkInit();
2021-02-16 11:01:01 +01:00
t_seconds* networkGetSeconds();
2021-02-16 11:18:41 +01:00
int8_t networkSendMinuteBuffer(t_minuteBuffer *minuteBuffer);
2021-02-16 10:37:09 +01:00
#endif /* _NETWORK_ABSTRACTION_LAYER_H_ */