6F8C0904 67
5.2 Sample Computer Link Protocol Program
5
/**************************************************************************************************************/
/* */
/* Sample program implementing register read/write using the computer link protocol */
/* */
/* */
/* This program is a sample program designed to verify the T3H Ethernet module computer */
/* link function. */
/* This program issues read/write requests to the specified T3H registers. */
/* Also note that registers in other stations can be accessed by modifying the SAMPLE.H */
/* definition file. */
/* */
/* */
/* */
/* (C) Copyright TOSHIBA Corporation 1995 */
/* All Rights Reserved */
/* */
/**************************************************************************************************************/
/*---------------------------*/
/* Include declarations */
/*---------------------------*/
#define WIN31 /* Windows 3.1 application */
#define USECOMM /* 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"