⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 funccommon.h

📁 本人编写的无线电话程序,给予PIC18C801设计,包括了uCOS的移植以及菜单,自己设计的拼音注入法,完整地一级汉字库,希望对大家有所帮助
💻 H
字号:
/************************************************************
 The definations of the functions listed here is in the file
 "funccommon.c"
 ************************************************************/
//swap the INT16 in unit of byte, that is, high byte to low, 
//and low byte to high
INT16U swaps(INT16U v);

//swap the INT32 in unit of byte.
//for example: 0x12345678->0x78563412
INT32U swapl(INT32U v);

//convert a serie of compressed BCD digit to unicode
INT8U app_c2u(INT8U rom * ps, INT8U len, INT16U rom * pd);

//convert a serie of UNICODE to ASCII
INT8U app_u2c(INT16U rom * ps, INT8U len, INT8U rom * pd);

//convert a serie of ASCII to unicode
INT8U app_a2u(INT8U rom * ps, INT8U len, INT16U rom * pd);

//convert a serie of unicode to ASCII
INT8U app_u2a(INT16U rom * ps, INT8U len, INT8U rom * pd);

//convert a series ofcompressed BCD code to ASCII
INT8U app_c2a(INT8U rom * ps, INT8U len, INT8U rom * pd);

//convert a series of ASCII to compressed BCD codes
INT8U app_a2c(INT8U rom * ps, INT8U len, INT8U rom * pd);

//common print function with unicode input and start X coordinate, Y coordinate. 
rom INT16U *app_printf(rom INT16U *pchar,INT8U len,INT8U x,INT8U y);

//free message memory block if there is one
void Func_Clear_Msg(INT8U rom * pMsg);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -