| /**
|
| *
|
| * @file tools.h
|
| * @brief
|
| * This file is part of tools.
|
| * ¹¤¾ßÊý¾ÝÀàÐͼ°¶ÔÍâ½Ó¿Ú¶¨Òå
|
| *
|
| * @details
|
| * @author Tools Team.
|
| * @email
|
| * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
|
| * @warning
|
| * @date 2019/02/02
|
| * @version 1.1
|
| * @pre
|
| * @post
|
| *
|
| * @par
|
| * Change History :
|
| * ---------------------------------------------------------------------------
|
| * date version author description
|
| * ---------------------------------------------------------------------------
|
| * 2012/12/27 1.0 lu.xieji Create file
|
| * 2019/02/02 1.1 jiang.fenglin ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen
|
| * ---------------------------------------------------------------------------
|
| *
|
| *
|
| */
|
|
|
| #ifndef TOOLS_COMM_H
|
| #define TOOLS_COMM_H
|
|
|
| #ifdef __cplusplus
|
| extern "C"
|
| {
|
| #endif
|
|
|
|
|
| // ´óС¶ÔÆë
|
| #define ALIGNED_SIZE(size, alignment) (((size) + (alignment)) & ~(alignment))
|
|
|
| #define ZTOOLS_SUCCESS 0x0
|
| #define ZTOOLS_FAILURE 0xFFFFFFFF
|
|
|
| #define ZCAT_PS_FILTER_LEN 0x5000
|
| #define ZCAT_PSEXP_FILTER_LEN 0x3000
|
|
|
| typedef enum
|
| {
|
| SUB_MODULE_TEST = 0,
|
| SUB_MODULE_LAST = 256
|
| } SUB_MODULE_TYPE;
|
|
|
|
|
| typedef VOID (*LP_zPS_pack)(BYTE bFreeFg, DWORD dwMsgId, WORD wMsgLen, PBYTE pMsg, PDWORD pOut, PDWORD pOutLen);
|
| typedef VOID (*LP_zPS_unPack)(DWORD dwMsgId, WORD wMsgLen, PBYTE pMsg, PDWORD pOut, PWORD pOutLen, BYTE * bySendType);
|
|
|
| extern LP_zPS_pack lp_zPS_pack;
|
| extern LP_zPS_unPack lp_zPS_unPack;
|
|
|
|
|
|
|
| #ifdef __cplusplus
|
| }
|
| #endif
|
|
|
| #endif // TOOLS_COMM_H
|
|
|