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.
 
 
 
 

32 lines
663 B

#ifndef _APP_SCREEN_SAVE_H
#define _APP_SCREEN_SAVE_H
#include "../bsp/TTSSbsp/bsp_config.h"
//定义所使用内存的起始和结尾标志
#define HEAD0 0xa3
#define HEAD1 0xa4
#define TAIL0 0xa5
#define TAIL1 0xa6
#define SCREEN_SAVE_LEN 10 //寄存器需要存放的最大数量为10组
#define EEPROM_WEIGHT_ADDR 0x200 //定义一个起始地址为0x200的寄存器
//用来存储重量数据的结构体(数组)
typedef struct
{
U8 head[2];
U8 available;
U16 kgx100_out;
U8 tail[2];
}SCREEN_SAVE;
extern SCREEN_SAVE screen_save_arr[SCREEN_SAVE_LEN];
extern void screen_save_init(void);
extern void screen_save_push(U16 weight);
#endif