C API Spec

From wizarPOS

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 can use ESC Commands to print text and pictures.

Contactless Reader

Introduce the API of the contactless reader device. The head file is contactless_card_interface.h. The contactless card reader supports CPU card, Mifare card, E-Wallet card, and some card simulation, such as Apple 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.