![BESTEK NSP-2C30 Скачать руководство пользователя страница 48](http://html1.mh-extra.com/html/bestek/nsp-2c30/nsp-2c30_user-manual_2740585048.webp)
48
// Watchdog Timer Sample Code
//------------------------------------------------------------------------
#include <dos.h>
#include <bios.h>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#include "LanWDT.h"
//------------------------------------------------------------------------
main(int argc, char *argv[])
{
//int PairSel, PowerOn, PowerOff, WDT;
char count, data;
char help[] = "-help";
char time[] = "-time";
char clear[] = "-clear";
if(argc == 2)
{
if(strcmp(argv[1],help) == 0){
printf("LanWDT -help
:show help message\n");
printf("LanWDT -time [0|1|2|4|8|16|32|64]
:timer setting\n");
printf("LanWDT -clear
:clear WDT timer\n");
return 0;
}
if(strcmp(argv[1],clear) == 0){
printf("LanWDT clear WDT timer\n");
SetWdtTime(0);
WdtStop();
return 0;
}
printf("Command Error! use -help for detial\n");
return -1;
}else if(argc == 3){
count = (char) strtol(argv[2], NULL, 10);
if((strcmp(argv[1],time) == 0) && ((count == 0 )|| (count == 1) || (count
== 2) || (count == 4) || (count == 8) || (count == 16) || (count == 32) || (count
== 64))){
5.1
Watchgod
Timer
Содержание NSP-2C30
Страница 1: ...1 Network Security System NSP 2C30 Always at the forefront of innovation User Manual...
Страница 7: ...7 Chapter 1 General Information...
Страница 11: ...11 Figure 1 1 System Layout of NSP 2C30 1 4 System Layout...
Страница 12: ...12 Front View With different combination of LAN Modules Rear View 1 5 Indicators Features...
Страница 13: ...13 Chapter 2 Preparation...
Страница 24: ...24 Chapter 3 Operation...
Страница 29: ...29 Chapter 4 BIOS Setup...
Страница 47: ...47 Chapter 5 Programming Guide...
Страница 63: ...63 Chapter 6 Q A...