📄 mpk1210.h
字号:
/*************************************************************************/
/* */
/* Copyright (c) 1993-2002 YULONG COMPUTER */
/* TELECOMMUNICATION SCIENTIFIC CO.,LTD. */
/* 宇龙计算机通信科技(深圳)有限公司 版权所有 1993-2002 */
/* PROPRIETARY RIGHTS of eWayCyber Technologies are involved in the */
/* subject matter of this material. All manufacturing, reproduction, */
/* use, and sales rights pertaining to this subject matter are governed */
/* by the license agreement. The recipient of this software implicitly */
/* accepts the terms of the license. */
/* 本软件文档资料是宇龙计算机通信科技(深圳)有限公司的资产,任何人士阅读和 */
/* 使用本资料必须获得相应的书面授权,承担保密责任和接受相应的法律约束. */
/* */
/*************************************************************************/
//===========================================================================
//
// Product : YuLong PDA application Example for EOS
// Module : Application.c
// Version : 1.00
//
//---------------------------------------------------------------------------
//
// Description : 应用程序的基本例子
//
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
// Author : Yangshengqian
// developed on : 2004.07.05
//
//===========================================================================
#ifndef __YL_PRINTER_MKP1210_V1_0_H__
#define __YL_PRINTER_MKP1210_V1_0_H__
Int32 MPK1210_GetComCBR(void);
/*****************************************************************************************
入口参数: i16ComId-串口句柄
描 述: 换行
*****************************************************************************************/
void MPK1210_feedLF(Int16 i16ComId);
/*****************************************************************************************
入口参数: i16ComId-串口句柄
描 述: 回车
*****************************************************************************************/
void MPK1210_feedCR(Int16 i16ComId);
/*****************************************************************************************
入口参数: i16ComId-串口句柄
描 述: 进页
*****************************************************************************************/
void MPK1210_feedFF(Int16 i16ComId);
/*****************************************************************************************
入口参数: mode=0, 行模式
mode=1, 页模式
描 述: 选择打印模式
*****************************************************************************************/
void MPK1210_selectmode(Int16 i16ComId, Char mode);
/*****************************************************************************************
入口参数: n-进纸的行数
描 述: 进纸
*****************************************************************************************/
void MPK1210_feedpaper(Int16 i16ComId, Char n);
/*****************************************************************************************
入口参数: n-字符间隔的尺寸(0 <= n <= 15,缺省n=0,间隔尺寸=n/8毫米)
描 述: 设置字符间隔
*****************************************************************************************/
void MPK1210_setcharspace(Int16 i16ComId, Char n);
/*****************************************************************************************
入口参数: n-ASCII字体(0 <= n <= 3,缺省n=1 14X24 ASCII字体)
n=0, 8X13 ASCII字体
n=1,14X24 ASCII字体
n=2,22X36 ASCII字体
n=3,24X24 Shift-JIS编码的KANJI字体
描 述: 设置打印机的ASCII字体
*****************************************************************************************/
void MPK1210_selectASCIIfont(Int16 i16ComId, Char n);
/*****************************************************************************************
入口参数: dw-指示是否横向放大一倍
dh-指示是否纵向放大一倍
描 述: 设置字符纵的横向放大
*****************************************************************************************/
void MPK1210_enlargefont(Int16 i16ComId, Char dw, Char dh);
/*****************************************************************************************
入口参数: x-自左边界算起
y-忽略
描 述: 设定每行打印的绝对起始位置
*****************************************************************************************/
void MPK1210_moveto(Int16 i16ComId, Char x, Char y);
/*****************************************************************************************
入口参数: pdata-字符串地址
描 述: 打印指定长度的字符串
*****************************************************************************************/
void MPK1210_print(Int16 i16ComId, Char *pdata);
/*****************************************************************************************
入口参数: pszname-文件名字
描 述: 打印指定文件名字的内容
*****************************************************************************************/
void MPK1210_printfile(Int16 i16ComId, Char *pszname);
/*****************************************************************************************
入口参数: n1 -图形放大模式(n1=0 正常; n1=1 横向放大一倍; n1=2 纵向放大一倍; n=3 纵横向放大一倍)
n2 -距左边界的距离(以字节计算)
n3 -图形的宽度(1 <= n3 <= 48 )
len -数据长度
pdata-图形数据指针
描 述: 绘画图形
*****************************************************************************************/
void MPK1210_draw(Int16 i16ComId, Char n1, Char n2, Char n3, Int16 len, Char *pdata);
/*****************************************************************************************
入口参数: n-灰度等级(0 <= n <= 10,缺省n=5)
描 述: 调整打印对比度
*****************************************************************************************/
void MPK1210_setdarkness(Int16 i16ComId, Char n);
#endif // __YL_PRINTER_MKP1210_V1_0_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -