User’s Manual
47
5.1 WDT Function
WDT Set Example
#include <stdio.h>
#include "stdafx.h"
#include <windows.h>
typedef int(_stdcall *IpMyin)(int);
typedef int(_stdcall *IpMyout)(int,int);
void set_watchdog(int time)
{
HINSTANCE hDll;
IpMyin Myin;
IpMyout Myout;
hDll = LoadLibrary(_T("inpout32.dll"));
if (hDll != NULL)
{
Myin = (IpMyin)GetProcAddress(hDll, "Inp32");
Myout = (IpMyout)GetProcAddress(hDll, "Out32");
if (Myin != NULL)
{
Myout(0x4e,0x87);
Myout(0x4e,0x87); //unlock
Myout(0x4e,0x2b);
Myout(0x4f,0xc0); //select logical device
Myout(0x4e,0x7);
Myout(0x4f,0x8);
//select logical device
Myout(0x4e,0x30);
Myout(0x4f,0x01); //Set Watch Dog Timer Activate
Myout(0x4e,0xf5);
Myout(0x4f,0x0);
//set second
Summary of Contents for FEBC-3158
Page 8: ...User s Manual 1 General Information CHAPTER 1 ...
Page 11: ...User s Manual 4 FEBC 3158 S001 Dimensions Uint mm Figure 1 1 ...
Page 12: ...User s Manual 5 Hardware Installation CHAPTER 2 ...
Page 17: ...User s Manual 10 2 4 I O indication Front view Rear view Figure 2 14 ...
Page 24: ...User s Manual 17 Figure 2 24 Figure 2 25 ...
Page 28: ...User s Manual 21 BIOS Setup CHAPTER 3 ...
Page 50: ...User s Manual 43 Driver Installation CHAPTER 4 ...