Toshiba V Series User Manual page 81

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

Advertisement

TcnScmGetStnInf
Name
Type
Description
6F8C0945
TcnScmGetStnInf - Read station diagnostic information
#include <tcnlib.h>
BOOL TcnScmGetStnInf ( IN HANDLE hDevice, OUT StnInf *p);
Obtains the station diagnostic information.
hDevice: File handle obtained with TcnCreateFile
The read data storage area StnInf is the following structure. The area must be
at least as large as StnInf size.
typedef struct MacInf {
BYTE
CmpInf;
BYTE
Errcnt;
BYTE
Astatus;
BYTE
Bstatus;
WORD
BbusErrcnt
WORD
AbusErrcnt
} MacInf;
typedef struct StnInf {
DWORD
RegInf;
MacInf
NodeInf[256]
} StnInf;
RegInf indicates the content of the error counter.
CmpInf contains the following information:
bit 7: Transmission path mode 0: Dual, 1: Single
bit 6: Reserved
bit 5: A system normal (previous)
bit 4: B system normal (previous)
bit 3 - bit 0: Pseudo CMP continuous detect counter
Errcnt contains the following information:
When RegInf=0: Continuous error counter
When RegInf=1: bit 15: A/B system First arrival system display (0: A, 1: B)
bit 14 - bit 0: Arrival time difference counter (40 ns/counter)
Astatus contains the following information:
bit 7: A system receive size over/format error/send JAVA detected
bit 6: A system receive CRC error detected/relay CRC error detected
bit 5: A system receive alignment error detected
bit 4: A system receive SFD/short error detected
bit 3: A system receive PHY/collision/send collision detected
bit 2: A system receive NCD error detected
bit 1: A system receive abnormal/send disable detected
8
69

Advertisement

Table of Contents
loading

Table of Contents