<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://sdkwiki.wizarpos.com/index.php?action=history&amp;feed=atom&amp;title=Printer_interface.h</id>
	<title>Printer interface.h - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://sdkwiki.wizarpos.com/index.php?action=history&amp;feed=atom&amp;title=Printer_interface.h"/>
	<link rel="alternate" type="text/html" href="http://sdkwiki.wizarpos.com/index.php?title=Printer_interface.h&amp;action=history"/>
	<updated>2026-05-23T19:33:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://sdkwiki.wizarpos.com/index.php?title=Printer_interface.h&amp;diff=123&amp;oldid=prev</id>
		<title>Mahong at 02:23, 9 April 2018</title>
		<link rel="alternate" type="text/html" href="http://sdkwiki.wizarpos.com/index.php?title=Printer_interface.h&amp;diff=123&amp;oldid=prev"/>
		<updated>2018-04-09T02:23:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:23, 9 April 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &amp;lt;syntaxhighlight lang=&quot;c&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   /*&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   /*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    * printer_interface.h&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    * printer_interface.h&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l73&quot;&gt;Line 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   #endif&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   #endif&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key media_wiki-wk:diff::1.12:old-91:rev-123 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mahong</name></author>
	</entry>
	<entry>
		<id>http://sdkwiki.wizarpos.com/index.php?title=Printer_interface.h&amp;diff=91&amp;oldid=prev</id>
		<title>Mahong: Created page with &quot;  /*    * printer_interface.h    *    *  Created on: 2012-7-19    *      Author: yaomaobiao    */      #ifndef PRINTER_INTERFACE_H_   #define PRINTER_INTERFACE_H_      #ifdef...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sdkwiki.wizarpos.com/index.php?title=Printer_interface.h&amp;diff=91&amp;oldid=prev"/>
		<updated>2018-04-04T09:56:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;* printer_interface.h    *    *  Created on: 2012-7-19    *      Author: yaomaobiao: &lt;/span&gt;      #ifndef PRINTER_INTERFACE_H_   #define PRINTER_INTERFACE_H_      #ifdef...&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;  /*&lt;br /&gt;
   * printer_interface.h&lt;br /&gt;
   *&lt;br /&gt;
   *  Created on: 2012-7-19&lt;br /&gt;
   *      Author: yaomaobiao&lt;br /&gt;
   */&lt;br /&gt;
  &lt;br /&gt;
  #ifndef PRINTER_INTERFACE_H_&lt;br /&gt;
  #define PRINTER_INTERFACE_H_&lt;br /&gt;
  &lt;br /&gt;
  #ifdef __cplusplus&lt;br /&gt;
  extern &amp;quot;C&amp;quot;&lt;br /&gt;
  {&lt;br /&gt;
  #endif&lt;br /&gt;
  &lt;br /&gt;
  /*&lt;br /&gt;
   * open the device&lt;br /&gt;
   * return value : 0 : success&lt;br /&gt;
   * 				  &amp;lt; 0 : error code&lt;br /&gt;
   */&lt;br /&gt;
  typedef int (*printer_open)();&lt;br /&gt;
  /*&lt;br /&gt;
   * prepare to print&lt;br /&gt;
   * return value : 0 : success&lt;br /&gt;
   * 				  &amp;lt; 0 : error code&lt;br /&gt;
   */&lt;br /&gt;
  typedef int (*printer_begin)();&lt;br /&gt;
  /*&lt;br /&gt;
   * end to print&lt;br /&gt;
   * return value : 0 : success&lt;br /&gt;
   * 				  &amp;lt; 0 : error code&lt;br /&gt;
   */&lt;br /&gt;
  typedef int (*printer_end)();&lt;br /&gt;
  /*&lt;br /&gt;
   * write the data to the device&lt;br /&gt;
   * @param[in] : unsigned char* pData, data or control command&lt;br /&gt;
   * @param[in] : int nDataLength : length of data or control command&lt;br /&gt;
   * return value : 0 : success&lt;br /&gt;
   * 				  &amp;lt; 0 : error code&lt;br /&gt;
   */&lt;br /&gt;
  typedef int (*printer_write)(unsigned char* pData, int nDataLength);&lt;br /&gt;
  &lt;br /&gt;
  /*&lt;br /&gt;
   * read the data from the device *&lt;br /&gt;
   * @param[out] : unsigned char* pData *&lt;br /&gt;
   * @param[in] : int nDataLength : expect length of data&lt;br /&gt;
   * @param[in] : int n_TimeOut_S : time out&lt;br /&gt;
   * return value : 0 : success * &amp;lt; 0 : error code&lt;br /&gt;
  */&lt;br /&gt;
  typedef int (*printer_read)(unsigned char* pData, int nDataLength, int n_TimeOut_S);&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  /*&lt;br /&gt;
   * query the status of printer&lt;br /&gt;
   * return value : &amp;lt; 0 : error code&lt;br /&gt;
   *                = 0 : no paper&lt;br /&gt;
   *                = 1 : has paper&lt;br /&gt;
   *                other value : RFU&lt;br /&gt;
   */&lt;br /&gt;
  typedef int (*printer_query_status)();&lt;br /&gt;
  /*&lt;br /&gt;
   * close the device&lt;br /&gt;
   * return value : 0 : success&lt;br /&gt;
   * 				  &amp;lt; 0 : error code&lt;br /&gt;
   */&lt;br /&gt;
  &lt;br /&gt;
  typedef int (*printer_close)();&lt;br /&gt;
  &lt;br /&gt;
  typedef int (*printer_query_voltage)(int *capacity, int *voltage);&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #ifdef __cplusplus&lt;br /&gt;
  }&lt;br /&gt;
  #endif&lt;/div&gt;</summary>
		<author><name>Mahong</name></author>
	</entry>
</feed>