Go to the documentation of this file.
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  *
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  ******************************************************************************/
19 /******************************************************************************
20  *
21  * Contains API for BTE Test Tool trace related functions.
22  *
23  ******************************************************************************/
26 #ifndef TRACE_API_H
27 #define TRACE_API_H
29 #include "bt_target.h"
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
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);
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);
101 EXPORT_API extern void LogMsg (UINT32 trace_set_mask, const char *fmt_str, ...);
103 #ifdef __cplusplus
104 }
105 #endif
107 #endif /* TRACE_API_H */
BT_API void RPC_DispAttMsg(BT_HDR *p_msg, BOOLEAN is_rcv)
BT_API void RPC_DispAMPFrame(BT_HDR *p_buf, BOOLEAN is_recv, BD_ADDR bd_addr)
BT_API void RPC_DispBnep(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void RPC_DispCHO(UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_rx)
BT_API void DispBnep(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void RPC_DispObxMsg(BT_HDR *p_buf, BOOLEAN is_recv)
unsigned long UINT32
Definition: NfcAdaptation.h:21
BT_API void RPC_DispHciScoData(BT_HDR *p_buf, BOOLEAN is_rcvd)
BT_API void RPC_DispSNEP(UINT8 local_sap, UINT8 remote_sap, UINT8 *p_data, UINT16 length, BOOLEAN is_rx)
BT_API void DispRWT4Tags(BT_HDR *p_buf, BOOLEAN is_rx)
BT_API void DispT3TagMessage(BT_HDR *p_msg, BOOLEAN is_rx)
BT_API void RPC_DispRWT4Tags(BT_HDR *p_buf, BOOLEAN is_rx)
BT_API void DispAvdtMsg(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispSNEP(UINT8 local_sap, UINT8 remote_sap, UINT8 *p_data, UINT16 length, BOOLEAN is_rx)
BT_API void RPC_DispHidFrame(BT_HDR *p_buf, BOOLEAN is_recv, BOOLEAN is_control)
BT_API void RPC_DispHciAclData(BT_HDR *p_buf, BOOLEAN is_rcvd)
BT_API void RPC_DispT3TagMessage(BT_HDR *p_msg, BOOLEAN is_rx)
BT_API void DispRWI93Tag(BT_HDR *p_buf, BOOLEAN is_rx, UINT8 command_to_respond)
BT_API void RPC_DispSdpFullList(UINT8 *p, UINT16 list_len, BOOLEAN is_rcv)
BT_API void DispNDEFMsg(UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_recv)
BT_API void DispSdp(BT_HDR *p_msg, BOOLEAN is_rcv, BOOLEAN is_segment)
BT_API void DispL2CCmd(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void RPC_DispNDEFRecord(UINT8 *pRec, INT8 *pDescr)
BT_API void DispSmpMsg(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispHciScoData(BT_HDR *p_buf, BOOLEAN is_rcvd)
BT_API void RPC_DispRFCOMMFrame(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void RPC_DispLLCP(BT_HDR *p_buf, BOOLEAN is_rx)
BT_API void DispCET4Tags(BT_HDR *p_buf, BOOLEAN is_rx)
BT_API void RPC_DispNDEFMsg(UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_recv)
BT_API void DispHciEvt(BT_HDR *p_buf)
BT_API void DispSdpFullList(UINT8 *p, UINT16 list_len, BOOLEAN is_rcv)
BT_API void RPC_DispAvdtMsg(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispCHO(UINT8 *pMsg, UINT32 MsgLen, BOOLEAN is_rx)
#define EXPORT_API
Definition: gki_target.h:36
BT_API void DispTcsMsg(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispHciAclData(BT_HDR *p_buf, BOOLEAN is_rcvd)
BT_API void RPC_DispSmpMsg(BT_HDR *p_msg, BOOLEAN is_rcv)
EXPORT_API void LogMsg(UINT32 trace_set_mask, const char *fmt_str,...)
BT_API void RPC_DispAvct(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispAvct(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispHcp(UINT8 *p, UINT16 len, BOOLEAN is_recv, BOOLEAN is_first_seg)
BT_API void RPC_DispHciEvt(BT_HDR *p_buf)
BT_API void RPC_DispHciCmd(BT_HDR *p_buf)
BT_API void DispRFCOMMFrame(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void RPC_DispHcp(UINT8 *p, UINT16 len, BOOLEAN is_recv, BOOLEAN is_first_seg)
BT_API void DispMca(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispRawFrame(UINT8 *p, UINT16 len, BOOLEAN is_rcv)
BT_API void RPC_DispMca(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispNDEFRecord(UINT8 *pRec, INT8 *pDescr)
BT_API void RPC_DispRWI93Tag(BT_HDR *p_buf, BOOLEAN is_rx, UINT8 command_to_respond)
BT_API void DispHciCmd(BT_HDR *p_buf)
BT_API void DispLLCP(BT_HDR *p_buf, BOOLEAN is_rx)
BT_API void RPC_DispCET4Tags(BT_HDR *p_buf, BOOLEAN is_rx)
BT_API void RPC_DispTcsMsg(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispSlipPacket(UINT8 *p, UINT16 len, BOOLEAN is_rcv, BOOLEAN oof_flow_ctrl)
BT_API void DispLMDiagEvent(BT_HDR *p_buf)
BT_API void RPC_DispSdp(BT_HDR *p_msg, BOOLEAN is_rcv, BOOLEAN is_segment)
BT_API void DispAttMsg(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void RPC_DispLMDiagEvent(BT_HDR *p_buf)
BT_API void RPC_DispNci(UINT8 *p, UINT16 len, BOOLEAN is_recv)
BT_API void DispAMPFrame(BT_HDR *p_buf, BOOLEAN is_recv, BD_ADDR bd_addr)
Definition: bt_types.h:287
BT_API void RPC_DispL2CCmd(BT_HDR *p_buf, BOOLEAN is_recv)
BT_API void DispObxMsg(BT_HDR *p_buf, BOOLEAN is_recv)
#define BT_API
Definition: bt_target.h:66
BT_API void DispHidFrame(BT_HDR *p_buf, BOOLEAN is_recv, BOOLEAN is_control)
BT_API void DispNci(UINT8 *p, UINT16 len, BOOLEAN is_recv)