log_api.h 388 B

123456789101112131415161718192021
  1. #ifndef __LOG_API_H
  2. #define __LOG_API_H
  3. #include "at32f403a_407.h"
  4. #include "ringfs.h"
  5. #include <stdbool.h>
  6. //
  7. void log_get_entry_count(void);
  8. //
  9. int log_get_archive_entry(uint32_t index, struct ringfs *fs, void *entry);
  10. //
  11. int log_get_log_entry(uint32_t index, struct ringfs *fs, void *entry);
  12. //
  13. int mb_log_get_entry(uint8_t *buf, uint16_t entry_index);
  14. #endif /* __LOG_API_H */