missing files
This commit is contained in:
25
sink/sinkStruct.h
Normal file
25
sink/sinkStruct.h
Normal file
@ -0,0 +1,25 @@
|
||||
#ifndef _SINKSTRUCT_H_
|
||||
#define _SINKSTRUCT_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sha256.h>
|
||||
#include <config.h>
|
||||
|
||||
#define SECONDS_PER_MINUTE 60
|
||||
typedef struct __attribute__((__packed__)) {
|
||||
char deviceId[sizeof(((t_configBlock*)0)->deviceId)];
|
||||
uint8_t hash[SHA256_BLOCK_SIZE];
|
||||
uint32_t totalRunningHours;
|
||||
uint32_t totalPowercycles;
|
||||
uint32_t totalWatchdogResets;
|
||||
uint32_t version;
|
||||
uint64_t timestamp;
|
||||
uint32_t frequency[SECONDS_PER_MINUTE];
|
||||
} t_minuteStruct;
|
||||
|
||||
typedef union {
|
||||
t_minuteStruct s;
|
||||
uint8_t b[sizeof(t_minuteStruct)];
|
||||
} t_minuteBuffer;
|
||||
|
||||
#endif // _SINKSTRUCT_H_
|
Reference in New Issue
Block a user