| 123456789101112131415161718192021222324252627282930 |
- /*
- * Copyright (c) 2006-2021, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2026-07-08 Administrator the first version
- */
- #ifndef APPLICATIONS_APP_FLASHDB_C_
- #define APPLICATIONS_APP_FLASHDB_C_
- #include <flashdb.h>
- typedef struct
- {
- uint8_t iSave; //存储标志位
- uint8_t freq_filter; //滤网自动更换周期
- uint8_t worked_day; //已采集天数
- uint32_t tape_max; //胶带最大使用量(长度)
- uint32_t filter_max; //滤网最大使用量(长度)
- uint32_t tape_used; //胶带使用量
- uint32_t filter_used; //滤网使用量
- }Flashdb_typedef;
- int app_flashdb_init(void);
- int app_flashdb_save(const char *key, void *value);
- int app_flashdb_load(const char *key, void *value);
- #endif /* APPLICATIONS_APP_FLASHDB_C_ */
|