⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug.c

📁 Cu1216 解调器驱动
💻 C
字号:
//-----------------------------------------------------------------------------
// $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 "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 = {
        10023,
        sizeof(a_uData),
        a_uData
    };
	SendMessage(hWindowDebug, WM_COPYDATA, (WPARAM)NULL, (LPARAM)&sCopyData);
#endif
}

 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -