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.

22 lines
523 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASE_REPORT_RECORD_HEADER__
  2. #define __BASE_REPORT_RECORD_HEADER__
  3. #include "basicTypes.h"
  4. typedef struct S_ReportRecord
  5. {
  6. uint8_t type;
  7. float Lat;
  8. float Lon;
  9. float Alt;
  10. uint32_t uts;
  11. uint32_t flags;
  12. uint8_t event_group[16];
  13. } ReportRecord;
  14. bool eventGroupToMD5(uint8_t * evtGrp, CSTR md5);
  15. bool MD5ToEventGroup(CSTR md5, uint8_t * evtGrp);
  16. bool writeRecord(FILE fd, ReportRecord * rec);
  17. bool readRecord(FILE * fd, ReportRecord * rec);
  18. size_t getRecordCountInFile(CSTR fName);
  19. #endif