1 /* 2 * Copyright (C) 2012-2022 NXP 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /* 18 * phNxpNciHal_nciParser.h 19 */ 20 21 #ifndef _PHNXPNCIHAL_NCIPARSER_H_ 22 #define _PHNXPNCIHAL_NCIPARSER_H_ 23 24 #define NXP_NCI_PARSER_PATH "/vendor/lib64/nxp_nci_parser.so" 25 26 /*******************Lx_DEBUG_CFG*******************/ 27 #define LX_DEBUG_CFG_DISABLE 0x0000 28 #define LX_DEBUG_CFG_ENABLE_L2_EVENT 0x0001 29 #define LX_DEBUG_CFG_ENABLE_FELICA_RF 0x0002 30 #define LX_DEBUG_CFG_ENABLE_FELICA_SYSCODE 0x0004 31 #define LX_DEBUG_CFG_ENABLE_L2_EVENT_READER 0x0008 32 #define LX_DEBUG_CFG_ENABLE_L1_EVENT 0x0010 33 #define LX_DEBUG_CFG_ENABLE_MOD_DETECTED_EVENT 0x0020 34 #define LX_DEBUG_CFG_ENABLE_CMA_EVENTS 0x2000 35 #define LX_DEBUG_CFG_MASK_RFU 0xDFC0 36 #define LX_DEBUG_CFG_MASK 0x20FF 37 38 typedef void* (*tHAL_API_NATIVE_CREATE_PARSER)(); 39 typedef void (*tHAL_API_NATIVE_DESTROY_PARSER)(void*); 40 typedef void (*tHAL_API_NATIVE_INIT_PARSER)(void*); 41 typedef void (*tHAL_API_NATIVE_DEINIT_PARSER)(void*); 42 typedef void (*tHAL_API_NATIVE_PARSE_PACKET)(void*, unsigned char*, 43 unsigned short); 44 45 typedef struct { 46 tHAL_API_NATIVE_CREATE_PARSER createParser; 47 tHAL_API_NATIVE_DESTROY_PARSER destroyParser; 48 tHAL_API_NATIVE_INIT_PARSER initParser; 49 tHAL_API_NATIVE_DEINIT_PARSER deinitParser; 50 tHAL_API_NATIVE_PARSE_PACKET parsePacket; 51 } tNCI_PARSER_FUNCTIONS; 52 53 unsigned char phNxpNciHal_initParser(); 54 void phNxpNciHal_parsePacket(unsigned char*, unsigned short); 55 void phNxpNciHal_deinitParser(); 56 57 #endif /* _PHNXPNCIHAL_NCIPARSER_H_ */ 58