You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.9 KiB
57 lines
1.9 KiB
/*
|
|
* Copyright (C) 2012-2020 NXP
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/*
|
|
* phNxpNciHal_nciParser.h
|
|
*/
|
|
|
|
#ifndef _PHNXPNCIHAL_NCIPARSER_H_
|
|
#define _PHNXPNCIHAL_NCIPARSER_H_
|
|
|
|
#define NXP_NCI_PARSER_PATH "/vendor/lib64/nxp_nci_parser.so"
|
|
|
|
/*******************Lx_DEBUG_CFG*******************/
|
|
#define LX_DEBUG_CFG_DISABLE 0x00
|
|
#define LX_DEBUG_CFG_ENABLE_L2_EVENT 0x01
|
|
#define LX_DEBUG_CFG_ENABLE_FELICA_RF 0x02
|
|
#define LX_DEBUG_CFG_ENABLE_FELICA_SYSCODE 0x04
|
|
#define LX_DEBUG_CFG_ENABLE_L2_EVENT_READER 0x08
|
|
#define LX_DEBUG_CFG_ENABLE_L1_EVENT 0x10
|
|
#define LX_DEBUG_CFG_ENABLE_MOD_DETECTED_EVENT 0x20
|
|
#define LX_DEBUG_CFG_MASK_RFU 0xFFC0
|
|
#define LX_DEBUG_CFG_MASK 0x00FF
|
|
|
|
typedef void* (*tHAL_API_NATIVE_CREATE_PARSER)();
|
|
typedef void (*tHAL_API_NATIVE_DESTROY_PARSER)(void*);
|
|
typedef void (*tHAL_API_NATIVE_INIT_PARSER)(void*);
|
|
typedef void (*tHAL_API_NATIVE_DEINIT_PARSER)(void*);
|
|
typedef void (*tHAL_API_NATIVE_PARSE_PACKET)(void*, unsigned char*,
|
|
unsigned short);
|
|
|
|
typedef struct {
|
|
tHAL_API_NATIVE_CREATE_PARSER createParser;
|
|
tHAL_API_NATIVE_DESTROY_PARSER destroyParser;
|
|
tHAL_API_NATIVE_INIT_PARSER initParser;
|
|
tHAL_API_NATIVE_DEINIT_PARSER deinitParser;
|
|
tHAL_API_NATIVE_PARSE_PACKET parsePacket;
|
|
} tNCI_PARSER_FUNCTIONS;
|
|
|
|
unsigned char phNxpNciHal_initParser();
|
|
void phNxpNciHal_parsePacket(unsigned char*, unsigned short);
|
|
void phNxpNciHal_deinitParser();
|
|
|
|
#endif /* _PHNXPNCIHAL_NCIPARSER_H_ */
|