1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef __display_H
- #define __display_H
- #define EVENT_clearall (1 << 1)
- #define EVENT_clear1 (1 << 2)
- #define EVENT_clear2 (1 << 3)
- #define EVENT_clear3 (1 << 4)
- #define EVENT_clear4 (1 << 5)
- #define EVENT_clear5 (1 << 6)
- #define EVENT_clear6 (1 << 7)
- #define EVENT_KPT_TMRWatch (1 << 8)
- #define EVENT_PlanName (1 << 9)
- #define EVENT_Current (1 << 10)
- #define EVENT_Current_noweight (1 << 11)
- #define EVENT_Now (1 << 12)
- #define EVENT_Total (1 << 13)
- #define EVENT_Next (1 << 14)
- #define EVENT_Stop (1 << 15)
- extern rt_sem_t display_lock;
- extern struct rt_event display_event;
- extern unsigned char RemoteSendDisplay;
- extern unsigned char WeightConst_displayTotal;
- extern unsigned char WeightConst_remoteDisplay;
- extern void display_usart_Init(UART_HandleTypeDef* uartHandle);
- extern uint8_t MenuItem; //当前菜单
- extern unsigned char WeightConst_Weight_display[8]; //显示重量
- extern unsigned char WeightConst_Weight_display_old[8]; //显示重量
- extern void threadMenuDisplay_init(void);
- extern void threadDisplay_init(void);
- extern void threadRemoteDisplay_init(void);
- extern void threadDisplay_delay_init(void);
- extern void ChancheShow(void);
- extern void send_uart4_send_data(void);
- extern unsigned char get_msg( unsigned char Xstart,// 0 - 191
- unsigned char Ystart, //0 - 47
- unsigned char ZiTiSize,//1 or 2 or 3
- unsigned char reset_enable,//0 or 1
- unsigned char speed,//速度 0 or 1 or 2 or 3
- unsigned char ZiFuCount,//字符个数
- unsigned char JieMianCount,//3
- unsigned char JieMianID,//0 or 1 or 2
- unsigned char Xend,
- unsigned char f,
- unsigned char * ASCII_buf);
- #endif
|