Files
DTU-LCD/Drivers/BSP/160160D/FONT5_7.H
2026-01-24 20:03:14 +08:00

57 lines
2.3 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/****************************************************************************************
* 文件名FONT5_7.H
* 功能5*7 ASCII码字体显示函数。(头文件)
* 作者:黄绍斌
* 日期2004.02.26
* 备注使用GUI_SetColor()函数设置前景颜色及背景色。
****************************************************************************************/
#ifndef FONT5_7_H
#define FONT5_7_H
/****************************************************************************
* 名称GUI_PutChar()
* 功能显示ASCII码显示值为20H-7FH(若为其它值,则显示' ')。
* 入口参数: x 指定显示位置x坐标
* y 指定显示位置y坐标
* ch 要显示的ASCII码值。
* 出口参数返回值为1时表示操作成功为0时表示操作失败。
* 说明:操作失败原因是指定地址超出有效范围。
****************************************************************************/
extern unsigned char GUI_PutChar(unsigned int x, unsigned int y, unsigned char ch);
/****************************************************************************
* 名称GUI_PutString()
* 功能:输出显示字符串(没有自动换行功能)。
* 入口参数: x 指定显示位置x坐标
* y 指定显示位置y坐标
* str 要显示的ASCII码字符串
* 出口参数:无
* 说明:操作失败原因是指定地址超出有效范围。
****************************************************************************/
extern void GUI_PutString(unsigned int x, unsigned int y, char *str);
/****************************************************************************
* 名称GUI_PutNoStr()
* 功能:输出显示字符串(没有自动换行功能),若显示的字符个数大于指定个数,则直接退出。
* 入口参数: x 指定显示位置x坐标
* y 指定显示位置y坐标
* str 要显示的ASCII码字符串。
* no 最大显示字符的个数
* 出口参数:无
* 说明:操作失败原因是指定地址超出有效范围。
****************************************************************************/
extern void GUI_PutNoStr(unsigned int x, unsigned int y, char *str, unsigned char no);
/****************************************************************************
* 名称GUI_PutHex()
* 功能显示HEX码显示值为00H-FFH(若为其它值,则显示' ')。
* 入口参数: x 指定显示位置x坐标
* y 指定显示位置y坐标
* v 要显示的HEX。
*出口参数:无
****************************************************************************/
extern void GUI_PutHex(unsigned char x, unsigned char y,unsigned char v);
#endif