2025-06-27 00:32:57 +08:00
|
|
|
|
#ifndef MYWIN_SWD_H__
|
|
|
|
|
#define MYWIN_SWD_H__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>ļ<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
#define SPECTRUM_WAVESAVE_MAX 64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
WIN_WindowStruct win;
|
|
|
|
|
char *title;
|
2025-07-05 19:47:28 +08:00
|
|
|
|
u8 *icon; //ͼ<><CDBC>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
u32 selectTxtColor;
|
|
|
|
|
u32 txtColor;
|
|
|
|
|
u32 selectRectColor;
|
|
|
|
|
u32 rectColor;
|
2025-07-05 19:47:28 +08:00
|
|
|
|
WIN_WorkFunStruct *work; //<2F><><EFBFBD><EFBFBD><EFBFBD>ṹ<EFBFBD><E1B9B9>
|
|
|
|
|
int work_ret; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>ֵ
|
2025-06-27 00:32:57 +08:00
|
|
|
|
int timerId;
|
|
|
|
|
char msg[100];
|
|
|
|
|
u8 *sram_icp;
|
|
|
|
|
u32 sram_icpSize;
|
|
|
|
|
u8 *swd_buff;
|
|
|
|
|
u32 swd_buffSize;
|
|
|
|
|
u32 swd_sended;
|
|
|
|
|
u32 swd_allSize;
|
|
|
|
|
u32 idcode;
|
|
|
|
|
u8 swd_err;
|
|
|
|
|
}WIN_SwdStruct;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WIN_SwdStruct *WIN_CreatSwd (WIN_WindowStruct *base,
|
|
|
|
|
void (*msgLoop)(struct _WIN_WindowStruct *win,WIN_MsgStruct *msg),
|
|
|
|
|
int x,int y,int x_size,int y_size);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void WIN_DeleteSwd (WIN_SwdStruct *stopwatch );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
//<2F><><EFBFBD>ӣ<EFBFBD><D3A3>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD><EFBFBD>0
|
2025-06-27 00:32:57 +08:00
|
|
|
|
int SWD_Connect (WIN_SwdStruct *swd );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
//<2F><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
void SWD_defaultMsgLoop (WIN_SwdStruct *stopwatch,WIN_MsgStruct *msg);
|
|
|
|
|
|
|
|
|
|
WIN_SwdStruct *SWD_EnterProgram (WIN_WindowStruct *base);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|