📄 sp30_drv.h
字号:
#define ushort unsigned short/*frame definite */#define ACK_FRAME 0x10#define MAN_FRAME 0x20#define MES_FRAME 0x30#define TAIL_FRAME 0xfeff/*to TET1:other field */#define PHONE_RING 0x40#define PHONE_PB 0x01#define PHONE_DP 0x00/*from TET1:other field */#define PACK_BEGIN 0x00#define PACK_MIDDLE 0x01#define PACK_END 0x03/*command definite */#define NULL_OP 0x00#define TALKING 0x01#define STOPING 0x04#define RESET 0x08#define MLCT 0x10#define V_R_CAP 0x11#define OFFHK 0x12#define RING 0x13#define N_OP 0x14#define DP_PB 0x15#define BAT 0x16#define TESTSLC 0x17#define RESET0 0x18#define END 0x19#define MONITOR 0x1a#define MON_FREE 0x1b#define INSERT 0x1c#define AUTO_OUT 0x20#define AUTO_IN 0x21#define BP_TEST 0x01#define TET1_TEST 0x02#define END_TESTING 0#define BEGIN_TESTING 1#define ACTUAL_TESTING 2#define BEGIN_MONITOR 3#define END_MONITOR 4#define ACTUAL_MONITOR 5typedef struct{ ushort head; /*0xffff */ unsigned char ser_no; unsigned char frame; short length; short mestype; /* =0 */ short evtno; /*SP30CN--100:manual 103:auto;SP30--150:manual 152:auto */ short test_1; /* =1 */ short testflag; /* 1:begin testing;0:terminate testing */ unsigned char reserved[6]; /* for future */ short test_2; /* =2 */ unsigned char para[4]; /* user number in BCD */ unsigned char other[14]; /*allways 0 */ unsigned char even; unsigned char tail_0; unsigned char tail_1; /*ushort tail; 0xfeff */}TO_SP30_FRAME;typedef struct{ ushort head; unsigned char ser_no; unsigned char frame; short length; short mestype; /* =0 */ short evtno; /*SP30CN--102;SP30--151 */ short test_1; /* =1 */ unsigned char cmdno; unsigned char argument; unsigned char other[16]; unsigned char even; unsigned char tail_0; unsigned char tail_1; /*ushort tail; */}TO_TET1_FRAME;typedef struct{ ushort head; unsigned char ser_no; unsigned char frame; short length; unsigned char even; unsigned char tail_0; unsigned char tail_1; /*ushort tail; */}NMSG_FRAME;typedef struct{ ushort head; unsigned char ser_no; unsigned char frame; short length; short mestype; /* =3 */ short evtno; /*SP30CN--102;SP30--151 */ ushort time1; /*low 16 bits */ ushort time2; /*high 16 bits */ unsigned char para[8]; unsigned char packtype; /* =0 */ unsigned char none;}PART_FROM_TEST;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -