1/******************************************************************************
2 *
3 *  Copyright (C) 2011-2012 Broadcom Corporation
4 *
5 *  Licensed under the Apache License, Version 2.0 (the "License");
6 *  you may not use this file except in compliance with the License.
7 *  You may obtain a copy of the License at:
8 *
9 *  http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *  Unless required by applicable law or agreed to in writing, software
12 *  distributed under the License is distributed on an "AS IS" BASIS,
13 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *  See the License for the specific language governing permissions and
15 *  limitations under the License.
16 *
17 ******************************************************************************/
18/******************************************************************************
19 * Decode NFC packets and print them to ADB log.
20 * If protocol decoder is not present, then decode packets into hex numbers.
21 ******************************************************************************/
22
23#ifdef __cplusplus
24extern "C"
25{
26#endif
27
28
29#include "data_types.h"
30
31
32#define DISP_NCI    ProtoDispAdapterDisplayNciPacket
33void ProtoDispAdapterDisplayNciPacket (UINT8* nciPacket, UINT16 nciPacketLen, BOOLEAN is_recv);
34void ProtoDispAdapterUseRawOutput (BOOLEAN isUseRaw);
35void ScrLog (UINT32 trace_set_mask, const char* fmt_str, ...);
36void LogMsg (UINT32 trace_set_mask, const char *fmt_str, ...);
37void LogMsg_0 (UINT32 trace_set_mask, const char *p_str);
38void LogMsg_1 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1);
39void LogMsg_2 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2);
40void LogMsg_3 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3);
41void LogMsg_4 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4);
42void LogMsg_5 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4, UINT32 p5);
43void LogMsg_6 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4, UINT32 p5, UINT32 p6);
44UINT8* scru_dump_hex (UINT8* p, char* pTitle, UINT32 len, UINT32 layer, UINT32 type);
45void BTDISP_LOCK_LOG();
46void BTDISP_UNLOCK_LOG();
47void BTDISP_INIT_LOCK();
48void BTDISP_UNINIT_LOCK();
49void DispHciCmd (BT_HDR* p_buf);
50void DispHciEvt (BT_HDR* p_buf);
51void DispLLCP (BT_HDR *p_buf, BOOLEAN is_recv);
52void DispHcp (UINT8 *data, UINT16 len, BOOLEAN is_recv);
53void DispSNEP (UINT8 local_sap, UINT8 remote_sap, BT_HDR *p_buf, BOOLEAN is_first, BOOLEAN is_rx);
54void DispCHO (UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_rx);
55void DispT3TagMessage(BT_HDR *p_msg, BOOLEAN is_rx);
56void DispRWT4Tags (BT_HDR *p_buf, BOOLEAN is_rx);
57void DispCET4Tags (BT_HDR *p_buf, BOOLEAN is_rx);
58void DispRWI93Tag (BT_HDR *p_buf, BOOLEAN is_rx, UINT8 command_to_respond);
59void DispNDEFMsg (UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_recv);
60
61
62
63#ifdef __cplusplus
64};
65#endif
66