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 24 extern "C" 25 { 26 #endif 27 28 29 #include "data_types.h" 30 31 32 #define DISP_NCI ProtoDispAdapterDisplayNciPacket 33 void ProtoDispAdapterDisplayNciPacket (UINT8* nciPacket, UINT16 nciPacketLen, BOOLEAN is_recv); 34 void ProtoDispAdapterUseRawOutput (BOOLEAN isUseRaw); 35 void ScrLog (UINT32 trace_set_mask, const char* fmt_str, ...); 36 void LogMsg (UINT32 trace_set_mask, const char *fmt_str, ...); 37 void LogMsg_0 (UINT32 trace_set_mask, const char *p_str); 38 void LogMsg_1 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1); 39 void LogMsg_2 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2); 40 void LogMsg_3 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3); 41 void LogMsg_4 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4); 42 void LogMsg_5 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4, UINT32 p5); 43 void LogMsg_6 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4, UINT32 p5, UINT32 p6); 44 UINT8* scru_dump_hex (UINT8* p, char* pTitle, UINT32 len, UINT32 layer, UINT32 type); 45 void BTDISP_LOCK_LOG(); 46 void BTDISP_UNLOCK_LOG(); 47 void BTDISP_INIT_LOCK(); 48 void BTDISP_UNINIT_LOCK(); 49 void DispHciCmd (BT_HDR* p_buf); 50 void DispHciEvt (BT_HDR* p_buf); 51 void DispLLCP (BT_HDR *p_buf, BOOLEAN is_recv); 52 void DispHcp (UINT8 *data, UINT16 len, BOOLEAN is_recv); 53 void DispSNEP (UINT8 local_sap, UINT8 remote_sap, BT_HDR *p_buf, BOOLEAN is_first, BOOLEAN is_rx); 54 void DispCHO (UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_rx); 55 void DispT3TagMessage(BT_HDR *p_msg, BOOLEAN is_rx); 56 void DispRWT4Tags (BT_HDR *p_buf, BOOLEAN is_rx); 57 void DispCET4Tags (BT_HDR *p_buf, BOOLEAN is_rx); 58 void DispRWI93Tag (BT_HDR *p_buf, BOOLEAN is_rx, UINT8 command_to_respond); 59 void DispNDEFMsg (UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_recv); 60 61 62 63 #ifdef __cplusplus 64 }; 65 #endif 66