C API Spec: Difference between revisions

From wizarPOS
No edit summary
Line 1: Line 1:
== API Overview==
== API Overview==
  This document provides an introduction to the C APIs. C API is the lowest API, it is provided by the POS driver, packages all the API implement in a so file, named "libwizarposDriver.so".
This article introduces C API. The C API is the underlying API, which is provided by the POS driver. We package all the API implementations in a so file called "libwizarposDriver.so".
  The third-party app should open this so file then call this API in its' C source code according as the corresponding head file. Here get the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/apidemo_c_1.5.0.zip API demo], it includes all the device JNI source code.
The third party application should load the so file and then call the API in its C source code according to the corresponding header file. Here is the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/apidemo_c_1.5.0.zip API demo], which contains all the JNI source code of the device.
=== [[API|Print]] ===  
=== [[API|Printer]] ===  
  Introduces the [[API]] of the printer device. The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/printer_interface.h printer_interface.h]. The POS printer device can print text, picture and [[ESC Commands]].
Introduce the [[API]] of the printer device. The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/printer_interface.h printer_interface.h]. The POS printer device can print text, picture and [[ESC Commands]].


=== [[Contactless API| Contactless Reader]] ===
=== [[Contactless API|Contactless Reader]] ===
  Introduces the [[Contactless API| API]] of the contactless reader device. The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/contactless_card_interface.h contactless_card_interface.h]. The contactless reader supports CPU Card, Mifare Card, E-Wallet Card, and also it can support some card emulation, includes Apply Pay.
Introduce the [[Contactless API| API]] of the contactless reader device. The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/contactless_card_interface.h contactless_card_interface.h]. The contactless reader supports CPU Card, Mifare Card, E-Wallet Card, and also it can support some card emulation, includes Apply Pay.


=== [[CashDrawer API|Cash Drawer]] ===
=== [[CashDrawer API|Cash Drawer]] ===
  Introduces the [[CashDrawer API|API]] about how to interaction with the external cash Drawer device. The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/moneybox_interface.h moneybox_interface.h].
Introduce the [[CashDrawer API|API]] about how to interaction with the external cash Drawer device. The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/moneybox_interface.h moneybox_interface.h].


=== [[FingerPrint API|Fingerprint]] ===
=== [[FingerPrint API|Fingerprint]] ===
  Introduces the [[FingerPrint API|API]] of the fingerprinter device. The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/fingerprint_interface.h fingerprint_interface.h].
Introduce the [[FingerPrint API|API]] of the fingerprinter device. The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/fingerprint_interface.h fingerprint_interface.h].


=== [[LED API|LED]] ===
=== [[LED API|LED]] ===
Introduces the [[LED API|API]] of the LED device. The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/led_service_interface.h led_service_interface.h].
Introduce the [[LED API|API]] of the LED device. The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/led_service_interface.h led_service_interface.h].


=== [[MSR API|MSR Reader]] ===
=== [[MSR API|MSR Reader]] ===
  Introduces the [[MSR API|API]] of the MSR reader device. The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/msr_interface.h msr_interface.h].
Introduce the [[MSR API|API]] of the MSR reader device. The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/msr_interface.h msr_interface.h].


=== [[PINPAD API|PINPAD]] ===
=== [[PINPAD API|PINPAD]] ===
  Introduces the [[PINPAD API|API]] of the PINPAD device. The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/pinpad_interface.h pinpad_interface.h].
Introduce the [[PINPAD API|API]] of the PINPAD device. The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/pinpad_interface.h pinpad_interface.h].


=== [[Secondary display API|Second Display]] ===
=== [[Secondary display API|Second Display]] ===
Introduces the [[Secondary display API|API]] about how to interaction with the external secondary display device. The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/customer_display_interface.h customer_display_interface.h].
Introduce the [[Secondary display API|API]] about how to interaction with the external secondary display device. The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/customer_display_interface.h customer_display_interface.h].


=== [[Serial port API|Serial Port]] ===
=== [[Serial port API|Serial Port]] ===
Introduces the [[Serial port API|API]] of the serial port device.The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/serial_port_interface.h serial_port_interface.h].
Introduce the [[Serial port API|API]] of the serial port device.The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/serial_port_interface.h serial_port_interface.h].


=== [[Smart Card API|Smart Card reader]] ===
=== [[Smart Card API|Smart Card reader]] ===
  Introduces the [[Smart Card API|API]] of the smart card reader device. The smart card reader supports IC card, PSAM card.The head file name is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/smart_card_interface.h smart_card_interface.h].
Introduce the [[Smart Card API|API]] of the smart card reader device. The smart card reader supports IC card, PSAM card.The head file is [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/device/c/smart_card_interface.h smart_card_interface.h].

Revision as of 12:29, 14 March 2020

API Overview

This article introduces C API. The C API is the underlying API, which is provided by the POS driver. We package all the API implementations in a so file called "libwizarposDriver.so". The third party application should load the so file and then call the API in its C source code according to the corresponding header file. Here is the API demo, which contains all the JNI source code of the device.

Printer

Introduce the API of the printer device. The head file is printer_interface.h. The POS printer device can print text, picture and ESC Commands.

Contactless Reader

Introduce the API of the contactless reader device. The head file is contactless_card_interface.h. The contactless reader supports CPU Card, Mifare Card, E-Wallet Card, and also it can support some card emulation, includes Apply Pay.

Cash Drawer

Introduce the API about how to interaction with the external cash Drawer device. The head file is moneybox_interface.h.

Fingerprint

Introduce the API of the fingerprinter device. The head file is fingerprint_interface.h.

LED

Introduce the API of the LED device. The head file is led_service_interface.h.

MSR Reader

Introduce the API of the MSR reader device. The head file is msr_interface.h.

PINPAD

Introduce the API of the PINPAD device. The head file is pinpad_interface.h.

Second Display

Introduce the API about how to interaction with the external secondary display device. The head file is customer_display_interface.h.

Serial Port

Introduce the API of the serial port device.The head file is serial_port_interface.h.

Smart Card reader

Introduce the API of the smart card reader device. The smart card reader supports IC card, PSAM card.The head file is smart_card_interface.h.