You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
521 B
21 lines
521 B
#ifndef __BASE_REPORT_RECORD_HEADER__
|
|
#define __BASE_REPORT_RECORD_HEADER__
|
|
#include "basicTypes.h"
|
|
|
|
typedef struct S_ReportRecord{
|
|
uint8_t type;
|
|
float Lat;
|
|
float Lon;
|
|
float Alt;
|
|
uint32_t uts;
|
|
uint32_t flags;
|
|
uint8_t event_group[16];
|
|
} ReportRecord;
|
|
|
|
bool eventGroupToMD5(uint8_t *evtGrp, CSTR md5);
|
|
bool MD5ToEventGroup(CSTR md5, uint8_t *evtGrp);
|
|
bool writeRecord(FILE fd, ReportRecord *rec);
|
|
bool readRecord(FILE *fd, ReportRecord *rec);
|
|
size_t getRecordCountInFile(CSTR fName);
|
|
|
|
#endif
|