?? sim.h
字號:
/*************************************************************************************************************
uC/GUI
嵌入式通用圖形軟件
文 件: SIM.H
描 述: Declares public functions of Simulation
************************************************************************************************************/
#ifndef SIM_H
#define SIM_H
/*************************************************************************************************************
Publics for Hardkey simulation
************************************************************************************************************/
typedef void SIM_HARDKEY_CB(int KeyIndex, int State);
int SIM_HARDKEY_GetNum(void);
int SIM_HARDKEY_GetState(unsigned int i);
SIM_HARDKEY_CB* SIM_HARDKEY_SetCallback(unsigned int KeyIndex, SIM_HARDKEY_CB* pfCallback);
int SIM_HARDKEY_SetMode (unsigned int KeyIndex, int Mode);
int SIM_HARDKEY_SetState(unsigned int KeyIndex, int State);
/*************************************************************************************************************
Publics for LCD
************************************************************************************************************/
void SIM_SetLCDPos(int x, int y);
int SIM_SetTransColor(int Color);
/*************************************************************************************************************
Routine(s) in user application
************************************************************************************************************/
void SIM_X_Init(void); /* Allow init before application starts ... Use it to set LCD offset etc */
/*************************************************************************************************************
Publics used by GUI_X module
************************************************************************************************************/
void SIM_Delay (int ms);
void SIM_ExecIdle(void);
int SIM_GetTime(void);
int SIM_GetKey(void);
int SIM_WaitKey(void);
void SIM_StoreKey(int);
/*************************************************************************************************************
Publics for logging, warning, errorout
************************************************************************************************************/
void SIM_Log(const char *s);
void SIM_Log1(const char *s, int p0);
void SIM_Log2(const char *s, int p0, int p1);
void SIM_Log3(const char *s, int p0, int p1, int p2);
void SIM_Log4(const char *s, int p0, int p1, int p2,int p3);
void SIM_Warn(const char *s);
void SIM_Warn1(const char *s, int p0);
void SIM_Warn2(const char *s, int p0, int p1);
void SIM_Warn3(const char *s, int p0, int p1, int p2);
void SIM_Warn4(const char *s, int p0, int p1, int p2, int p3);
void SIM_ErrorOut(const char *s);
void SIM_ErrorOut1(const char *s, int p0);
void SIM_ErrorOut2(const char *s, int p0, int p1);
void SIM_ErrorOut3(const char *s, int p0, int p1, int p2);
void SIM_ErrorOut4(const char *s, int p0, int p1, int p2, int p3);
/*************************************************************************************************************
Commandline support
************************************************************************************************************/
const char *SIM_GetCmdLine(void);
/*************************************************************************************************************
Multitasking support
************************************************************************************************************/
void SIM_CreateTask(char * pName,
void * pFunc,
unsigned char Priority);
void SIM_Start(void);
unsigned long SIM_GetTaskID(void);
void SIM_Lock(void);
void SIM_Unlock(void);
void SIM_InitOS(void);
#endif /* LCD_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -