Toshiba V Series User Manual page 88

Integrated controller
Hide thumbs Also See for V Series:
Table of Contents

Advertisement

Chapter 8 Function Reference
8
76
TcnGetCorrenspondence
Name
TcnGetCorrespondence - Get correspondence between rotary switch setting
and logical card number
Type
#include <tcnlib.h>
BOOL TcnGetCorrespondence ( OUT TcnCorrespondence *p )
Description
Obtains the correspondence between the rotary switch setting and JTNI card
logical number. If two JTNI cards are installed, be sure to set the rotary
switches to different values and use this function to obtain the relation-
ship between the logical card number and rotary switch setting. The
logical card number obtained with this function will be necessary when obtaining
the access handle with TcnCreateFile.
Return Code
TRUE is returned in case of normal end.
Also, the relationship between the rotary switch setting and logical card number
is stored in the output structure. The area must be at least as large as
TcnCorrespondence size.
typedef struct TcnCorrespondence {
WORD
BYTE
} TcnCorrespondence;
The rotary switch setting of the JTNI card assigned to logical card number 0
is stored in Correspondence[0] and the rotary switch setting of the JTNI card
assigned to logical card number 1 is stored in Correspondence[1].
If only one JTNI card is installed, the rotary switch setting of the installed JTNI
card is stored in Correspondence[0] and 0xFF is stored in Correspondence[1]
when this function is issued.
FALSE is returned in case of abnormal end.
The error detail can be obtained with GetLastError().
Example
#include <windows.h>
#include "tcnlib.h"
TcnCorrespondence buf;
result = TcnGetCorrespondence( &buf );
if( !result ) printf(" TcnGetCorrespondence fail. Code=%ld\n",GetLastError());
See Also
TcnCreateFile
NumberOfCards;
Correspondence[2];
:
:
TC-net 100 PCI Bus Card Support Software User Manual

Advertisement

Table of Contents
loading

Table of Contents