debug.c
来自「TDA10046驱动源代码.TDA10046是PHILIPS的一款DVB-T T」· C语言 代码 · 共 66 行
C
66 行
//-----------------------------------------------------------------------------
// $Header:
// (C) Copyright 2001 Philips Semiconductors, All rights reserved
//
// This source code and any compilation or derivative thereof is the sole
// property of Philips Corporation and is provided pursuant to a Software
// License Agreement. This code is the proprietary information of Philips
// Corporation and is confidential in nature. Its use and dissemination by
// any party other than Philips Corporation is strictly limited by the
// confidential information provisions of the Agreement referenced above.
//-----------------------------------------------------------------------------
// FILE NAME: Debug.c
//
// DESCRIPTION: Function for the silicon demodulator TDA10093
//
// DOCUMENT REF: <References to specification or other documents related to
// this module>
//
// NOTES: 1.1 10/11/01 09:38:01
//-----------------------------------------------------------------------------
//
#ifdef _WIN32
#include "windows.h"
static HWND hWindowDebug = 0;
#endif
#include "..\..\Include\tmhalFEtypes.h"
#include "Debug.h"
//-----------------------------------------------------------------------------
// functions:
//-----------------------------------------------------------------------------
//
#ifdef _WIN32
// detection of the debug windows when the DLL is loaded
BOOL WINAPI DllMain(
HINSTANCE hinstDLL, // handle to DLL module
DWORD fdwReason, // reason for calling function
LPVOID lpvReserved // reserved
)
{
if (fdwReason == DLL_PROCESS_ATTACH)
hWindowDebug = FindWindow(NULL, "DeviceId - MultiFETrace");
return TRUE;
}
#endif
// trace function
void Trace(UInt16 wMsgId, UInt32 uValue)
{
#ifdef _WIN32
UInt32 a_uData[] = {wMsgId, uValue};
COPYDATASTRUCT sCopyData = {
10046,
sizeof(a_uData),
a_uData
};
SendMessage(hWindowDebug, WM_COPYDATA, (WPARAM)NULL, (LPARAM)&sCopyData);
#endif
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?