📄 meta_nvram_cb.~cpp
字号:
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2002
*
*****************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* META_FDM_cb.cpp
*
* Project:
* --------
* META_LAB
*
* Description:
* ------------
* META FDM call back function
*
* Author:
* -------
* FZ Hsu (mtk00303)
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* $Revision: 1.1 $
* $Modtime: Jul 22 2002 21:23:32 $
* $Log: //mtkvs01/vmdata/meta_lab/archives/META_FDM_cb.cpp-arc $
*
* Rev 1.1 Jul 22 2002 21:28:36 admin
* META_LAB
*
* Rev 1.0 Jul 22 2002 21:01:10 admin
* Initial revision.
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
#include <windows.h>
#pragma hdrstop
#include "meta.h"
//#include "META_LAB_MainU.h"
#include "meta_msg.h"
extern HANDLE hForm_PostMsgTarget;
//------------------------------------------------------------------------------
// META FDM call back
// modified by Andy Ueng
// void fdm_node_read_rec_cnf_cb( FdmReadRec_Cnf *cnf)
void __stdcall NVRAM_node_read_rec_cnf_cb( const FT_NVRAM_READ_CNF *cnf, const short token, void *usrData)
// end of modified
{
// META_LAB_MainForm->i_CB_Msg_id = eFDM_READ_REC_CNF;
PostMessage(
hForm_PostMsgTarget,
WM_FDM_READ_REC_CNF,
cnf->status, // unsigned short -> unsigned int
cnf->len // int -> long
);
}
//------------------------------------------------------------------------------
// modified by Andy Ueng
// void fdm_node_write_rec_cnf_cb( FdmWriteRec_Cnf *cnf)
void NVRAM_node_write_rec_cnf_cb( FT_NVRAM_WRITE_CNF cnf, short token, void *usrData)
// end of modified
{
// META_LAB_MainForm->i_CB_Msg_id = eFDM_WRITE_REC_CNF;
PostMessage(
hForm_PostMsgTarget,
WM_FDM_WRITE_REC_CNF,
// cnf->status, // unsigned short -> unsigned int // modified by Andy Ueng
cnf.status,
0 // -> long
);
}
//------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -