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