1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef FLASH_H
- #define FLASH_H
- #include <flashdb.h>
- extern uint8_t isCC;
- extern uint8_t isTag; //是否含识读标签
- extern struct fdb_kvdb kvdb;
- extern struct fdb_tsdb ts_keydb;
- extern struct fdb_tsdb ts_plandb;
- extern struct fdb_tsdb ts_weightdb;
- extern uint8_t XbeeConst_DeviceAddress;
- extern uint8_t XbeeConst_NetAddress;
- extern uint8_t XbeeConst_UseAPI;
- extern uint8_t WeightConst_TQ;
- extern uint8_t WeightConst_BLE;
- extern uint8_t WeightConst_ChanCheShu;
- extern uint8_t WeightConst_SBType;
- extern int16_t WeightConst_WeightBegin; //按键开始重量
- extern uint8_t ad_Percent; // 7, 校正重量,1字节
- extern uint32_t ad_Maxval; // 8, 最大称量,4字节
- extern uint8_t ad_FS; // 12, 滤波深度,1字节
- extern uint8_t ad_Point; // 13, 小数点, 1字节
- extern uint8_t ad_Inteval; // 14, 分度值, 1字节
- extern float ad_Spanz; // 15, 分度内码数, 4字节
- extern uint32_t ad_Zero; // 19, 真零内码, 4字节
- extern uint32_t ad_Tare; // 23, 皮零内码, 4字节
- extern uint32_t tsdb_recordcount(const char key);
- extern void write_Flash(const char *key, const void *value_buf, size_t buf_len);
- extern uint8_t ts_pushArrary(fdb_tsdb_t db, uint8_t *buf, uint8_t length);
- extern void findF8(void);
- extern uint32_t findkey(uint8_t i);
- extern uint32_t findweight(void);
- extern uint32_t findplan(void);
- extern uint32_t findNextplan(void);
- extern void findF12(void);
- extern void save_read_ts(const char key);
- extern void reset_read_ts(const char key);
- extern void onbordflash_init(void);
- extern void setNetAddress(void);
- extern void setAPI(void);
- extern void init_allflash(void);
- extern void back_read_plan(void);
- #endif
|