PAX L2 API Programming Guide For Public Library
PAX L2 API Programming Guide For Public Library
PAX L2 API
Programming Guide
For Public Library
Version 1.0.1
I
PAX L2 API Programming Guide
All rights reserved. No part of the contents of this document may be reproduced or
transmitted in any form or by any means without the written permission of PAX
Computer Technology (Shenzhen) Co., Ltd.
The information contained in this document is subject to change without notice.
Although PAX Computer Technology (Shenzhen) Co., Ltd. has attempted to ensure
the accuracy of the contents of this document, this document may contain errors or
omissions. The examples and sample programs are for illustration only and may not
be suitable for your purpose. You should verify the applicability of any example or
sample program before placing the software into productive use.
II
PAX L2 API Programming Guide
Revision History
III
PAX L2 API Programming Guide
Contents
1 Introduction ......................................................................................................................... 1
1.1 Abbreviation ............................................................................................................. 1
1.2 Document Conventions ............................................................................................ 1
2 Functions ............................................................................................................................. 3
2.1 PUB_ReadVerInfo .................................................................................................. 3
2.2 PUB_MallocDatabase ............................................................................................. 4
2.3 PUB_FreeDatabase ................................................................................................. 4
IV
PAX L2 API Programming Guide
1 Introduction
1.1 Abbreviation
Table 1 Abbreviation
Abbreviation Description
CLSS Contactless
1
PAX L2 API Programming Guide
2
PAX L2 API Programming Guide
2 Functions
2.1 PUB_ReadVerInfo
EMV_OK Successful
Return
CLSS_PARAM_ERR Parameter error.
Instruction None
3
PAX L2 API Programming Guide
2.2 PUB_MallocDatabase
Parameters None
EMV_OK Successful
Return
EMV_OVERFLOW Malloc failed.
Only the A1_PUBLIC_LIB_vxxx library is supported.
The size is 10K(PUB_MAX_DATABASE_MEM +
Instruction PUB_MAX_EXDATABASE_MEM)
This function must be called before the CoreInit API of other L2
kernels.
2.3 PUB_FreeDatabase
Parameters None
Return None
Only supports the A1_PUBLIC_LIB_vxxx library.
Instruction This function can be called after the transaction is finished.
4
PAX L2 API Programming Guide
The End