1 /****************************************************************************** 2 * 3 * Copyright (C) 1999-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 /****************************************************************************** 20 * 21 * Contains API for BTE Test Tool trace related functions. 22 * 23 ******************************************************************************/ 24 25 26 #ifndef TRACE_API_H 27 #define TRACE_API_H 28 29 #include "bt_target.h" 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 /* Trace API Function External Declarations */ 36 BT_API extern void DispAMPFrame (BT_HDR *p_buf, BOOLEAN is_recv, BD_ADDR bd_addr); 37 BT_API extern void DispRFCOMMFrame (BT_HDR *p_buf, BOOLEAN is_recv); 38 BT_API extern void DispL2CCmd(BT_HDR *p_buf, BOOLEAN is_recv); 39 BT_API extern void DispSdp (BT_HDR *p_msg, BOOLEAN is_rcv, BOOLEAN is_segment); 40 BT_API extern void DispSdpFullList (UINT8 *p, UINT16 list_len, BOOLEAN is_rcv); 41 BT_API extern void DispTcsMsg (BT_HDR *p_buf, BOOLEAN is_recv); 42 BT_API extern void DispHciEvt (BT_HDR *p_buf); 43 BT_API extern void DispHciAclData (BT_HDR *p_buf, BOOLEAN is_rcvd); 44 BT_API extern void DispHciScoData (BT_HDR *p_buf, BOOLEAN is_rcvd); 45 BT_API extern void DispHciCmd (BT_HDR *p_buf); 46 BT_API extern void DispBnep (BT_HDR *p_buf, BOOLEAN is_recv); 47 BT_API extern void DispAvdtMsg (BT_HDR *p_buf, BOOLEAN is_recv); 48 BT_API extern void DispAvct (BT_HDR *p_buf, BOOLEAN is_recv); 49 BT_API extern void DispMca (BT_HDR *p_buf, BOOLEAN is_recv); 50 BT_API extern void DispObxMsg (BT_HDR *p_buf, BOOLEAN is_recv); 51 BT_API extern void DispLMDiagEvent (BT_HDR *p_buf); 52 BT_API extern void DispHidFrame (BT_HDR *p_buf, BOOLEAN is_recv, BOOLEAN is_control); 53 BT_API extern void DispRawFrame(UINT8 *p, UINT16 len, BOOLEAN is_rcv); 54 BT_API extern void DispSlipPacket(UINT8 *p, UINT16 len, BOOLEAN is_rcv, BOOLEAN oof_flow_ctrl); 55 BT_API extern void DispNci (UINT8 *p, UINT16 len, BOOLEAN is_recv); 56 BT_API extern void DispHcp (UINT8 *p, UINT16 len, BOOLEAN is_recv, BOOLEAN is_first_seg); 57 BT_API extern void DispNDEFRecord (UINT8 *pRec, INT8 *pDescr); 58 BT_API extern void DispNDEFMsg (UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_recv); 59 BT_API extern void DispSmpMsg (BT_HDR *p_buf, BOOLEAN is_recv); 60 BT_API extern void DispAttMsg (BT_HDR *p_buf, BOOLEAN is_recv); 61 BT_API extern void DispLLCP (BT_HDR *p_buf, BOOLEAN is_rx); 62 BT_API extern void DispSNEP (UINT8 local_sap, UINT8 remote_sap, UINT8 *p_data, UINT16 length, BOOLEAN is_rx); 63 BT_API extern void DispCHO (UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_rx); 64 BT_API extern void DispT3TagMessage(BT_HDR *p_msg, BOOLEAN is_rx); 65 BT_API extern void DispRWT4Tags (BT_HDR *p_buf, BOOLEAN is_rx); 66 BT_API extern void DispCET4Tags (BT_HDR *p_buf, BOOLEAN is_rx); 67 BT_API extern void DispRWI93Tag (BT_HDR *p_buf, BOOLEAN is_rx, UINT8 command_to_respond); 68 69 BT_API extern void RPC_DispAMPFrame (BT_HDR *p_buf, BOOLEAN is_recv, BD_ADDR bd_addr); 70 BT_API extern void RPC_DispRFCOMMFrame (BT_HDR *p_buf, BOOLEAN is_recv); 71 BT_API extern void RPC_DispL2CCmd(BT_HDR *p_buf, BOOLEAN is_recv); 72 BT_API extern void RPC_DispSdp (BT_HDR *p_msg, BOOLEAN is_rcv, BOOLEAN is_segment); 73 BT_API extern void RPC_DispSdpFullList (UINT8 *p, UINT16 list_len, BOOLEAN is_rcv); 74 BT_API extern void RPC_DispTcsMsg (BT_HDR *p_buf, BOOLEAN is_recv); 75 BT_API extern void RPC_DispHciEvt (BT_HDR *p_buf); 76 BT_API extern void RPC_DispHciAclData (BT_HDR *p_buf, BOOLEAN is_rcvd); 77 BT_API extern void RPC_DispHciScoData (BT_HDR *p_buf, BOOLEAN is_rcvd); 78 BT_API extern void RPC_DispHciCmd (BT_HDR *p_buf); 79 BT_API extern void RPC_DispLMDiagEvent (BT_HDR *p_buf); 80 BT_API extern void RPC_DispBnep (BT_HDR *p_buf, BOOLEAN is_recv); 81 BT_API extern void RPC_DispAvdtMsg (BT_HDR *p_buf, BOOLEAN is_recv); 82 BT_API extern void RPC_DispAvct (BT_HDR *p_buf, BOOLEAN is_recv); 83 BT_API extern void RPC_DispMca (BT_HDR *p_buf, BOOLEAN is_recv); 84 BT_API extern void RPC_DispObxMsg (BT_HDR *p_buf, BOOLEAN is_recv); 85 BT_API extern void RPC_DispLMDiagEvent (BT_HDR *p_buf); 86 BT_API extern void RPC_DispHidFrame (BT_HDR *p_buf, BOOLEAN is_recv, BOOLEAN is_control); 87 BT_API extern void RPC_DispSmpMsg (BT_HDR *p_msg, BOOLEAN is_rcv); 88 BT_API extern void RPC_DispAttMsg (BT_HDR *p_msg, BOOLEAN is_rcv); 89 BT_API extern void RPC_DispNci (UINT8 *p, UINT16 len, BOOLEAN is_recv); 90 BT_API extern void RPC_DispHcp (UINT8 *p, UINT16 len, BOOLEAN is_recv, BOOLEAN is_first_seg); 91 BT_API extern void RPC_DispNDEFRecord (UINT8 *pRec, INT8 *pDescr); 92 BT_API extern void RPC_DispNDEFMsg (UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_recv); 93 BT_API extern void RPC_DispLLCP (BT_HDR *p_buf, BOOLEAN is_rx); 94 BT_API extern void RPC_DispSNEP (UINT8 local_sap, UINT8 remote_sap, UINT8 *p_data, UINT16 length, BOOLEAN is_rx); 95 BT_API extern void RPC_DispCHO (UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_rx); 96 BT_API extern void RPC_DispT3TagMessage(BT_HDR *p_msg, BOOLEAN is_rx); 97 BT_API extern void RPC_DispRWT4Tags (BT_HDR *p_buf, BOOLEAN is_rx); 98 BT_API extern void RPC_DispCET4Tags (BT_HDR *p_buf, BOOLEAN is_rx); 99 BT_API extern void RPC_DispRWI93Tag (BT_HDR *p_buf, BOOLEAN is_rx, UINT8 command_to_respond); 100 101 EXPORT_API extern void LogMsg (UINT32 trace_set_mask, const char *fmt_str, ...); 102 103 #ifdef __cplusplus 104 } 105 #endif 106 107 #endif /* TRACE_API_H */ 108