app_flashdb.h 889 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2026-07-08 Administrator the first version
  9. */
  10. #ifndef APPLICATIONS_APP_FLASHDB_C_
  11. #define APPLICATIONS_APP_FLASHDB_C_
  12. #include <flashdb.h>
  13. typedef struct
  14. {
  15. uint8_t iSave; //存储标志位
  16. uint8_t freq_filter; //滤网自动更换周期
  17. uint8_t worked_day; //已采集天数
  18. uint32_t tape_max; //胶带最大使用量(长度)
  19. uint32_t filter_max; //滤网最大使用量(长度)
  20. uint32_t tape_used; //胶带使用量
  21. uint32_t filter_used; //滤网使用量
  22. }Flashdb_typedef;
  23. int app_flashdb_init(void);
  24. int app_flashdb_save(const char *key, void *value);
  25. int app_flashdb_load(const char *key, void *value);
  26. #endif /* APPLICATIONS_APP_FLASHDB_C_ */