📄 staserver.h
字号:
/**********************************************************************//* substation.h headfile for substation server using UDP protocal *//* Copyright 2003 Hua Xun Inc. */ /* modification history -------------------- 2003-10-16 Written by SunYanjin 2005-4-18 Modified by Lvqiaoyan*//* definations for substation board *//* Package format ADCH0+ADCH1+ADCH2+ADCH3+ADCH4+ADCH5+ADCH6+ADCH7+KEY0+KEY1+Others ADCH = A/D convertor Channel Key = On/Off *//* Address Space: using nECS3 base address 0x61000000*/ /* Defines common information for both server and client.*/ /* Note: when testing , downloading and spawning task every time , u should change the port number! */ #ifndef SUBSTATION #define SUBSTATION #define SERVER_PORT_NUM 5002 #define MSG_SIZE 5 #define DAT_SIZE 42 /* Structure used for request/message from client */ struct request { char reply[8]; /* TRUE if client wants a reply */ char action; char message[MSG_SIZE]; /* Message buffer */ };extern char station_data[];extern char control_info[];extern void ipModify();extern char ipModifyData;#endif SUBSTATION/*end SUBSTATION*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -