testdll.c
来自「HART协议编程例程」· C语言 代码 · 共 51 行
C
51 行
/*************************************************************************
* Copyright (c) 1999 - 2000 Borst Automation, Fachingen
* All rights reserved
*
* Filename: TestDll.c
* Project: HART
* Date: Aug-24-99
* Author(s): W. Borst
*
* Revision:
* Date: Name: Version: Description:
* Aug-24-99 W. Borst ----- Initial Draft
* Jul-29-00 W. Borst 100000 Changes for Project li001/00
*
* Description: Used to generate a DLL for testing of the other parts.
*
*************************************************************************/
/**********************************************************************
* The Standard Include *
**********************************************************************/
#define __TESTDLL_H__
#include "..\HartTest\TestDll.h"
static BOOL bInitDone = FALSE;
T_DllExport VOID StartHartSimulation(VOID)
{
if (!bInitDone)
{ PcComPrtInitialize();
}
//Initialize Function Blocks
FbInit();
// Initialize Hart Driver
hrtInit();
// hrtInit() opens the Com Port and starts
// the communication thread
}
T_DllExport VOID RunHartCommandInterpreter(VOID)
{
hrtSrvInterpreter();
}
T_DllExport VOID EndHartSimulation(VOID)
{
M_HRT_TERMINATE;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?