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

📄 testdll.c

📁 HART协议编程例程
💻 C
字号:
/*************************************************************************
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -