6 F 3 B 0 3 6 2

/**********************************************************************/

/*

 

*/

/*

Sample program implementing register read and write processing

*/

/*

using the computer link protocol.

*/

/*

 

*/

/*

This program is a sample program designed to verify the T2N

*/

/*

Ethernet port computer link function.

*/

/*

This program issues read and write requests to the specified

*/

/*

T2N registers.

*/

/*

Also note that registers in other ports can be accessed by

*/

/*

modifying the SAMPLE.H definition file.

*/

/*

 

*/

/*

 

*/

/*

 

*/

/*

(C) Copyright TOSHIBA Corporation 1995

*/

/*

All Rights Reserved

*/

/*

 

*/

/**********************************************************************/

/*---------------------------*/

/* Include declarations

*/

/*---------------------------*/

#define WIN31

/* This is a Windows 3.1 application.

*/

#define USECOMM

/* The COMM API is required.

*/

#include <string.h>

 

 

#include <stdio.h>

 

 

#include <stdlib.h>

 

 

#include <string.h>

 

 

#include <memory.h>

 

 

#include <sys¥types.h> #include <fcntl.h> #include <errno.h> #include <sys¥socket.h> #include <sys¥timeb.h> #include <time.h> #include <sys¥in.h> #include <sys¥netdb.h> #include "sample.h"

52

Page 53
Image 53
Toshiba T2N instruction manual ⎯ 52 ⎯