📄 freeportcomms.h
字号:
/******************************************************************************/
/* Header file 'freePortComms.h' */
/******************************************************************************/
#ifndef _FREEPORTCOMMS_
#define _FREEPORTCOMMS_
// maximum number of user data communication channels
#define MAX_FREECOM_CHANNELS 5 /* maximum number of user communication channels */
#define MAX_FREECOM_BUF_SIZE 50 /* currently limited to 50 data bytes (FW-08-06) */
#define MAX_NUM_COM_PORTS 4 /* COM1, COM2, COM3, COM4 */
// size of host sided communication buffer
#define FREEPORT_HOST_BUF_SIZE (MAX_FREECOM_CHANNELS*MAX_FREECOM_BUF_SIZE+200)
#ifndef _S0_USERTEL_
#ifndef _RADIOCOMMS_
// all buffer variables are of the following format...
typedef struct myUsrBuf_tag {
int_T buffer_full;
uint_T access_count;
uint_T buf_size;
uint8_T *buf;
} myUsrBuf;
#endif /* _RADIOCOMMS_ */
#endif /* _S0_USERTEL_ */
#ifdef MATLAB_MEX_FILE
#include <windows.h> /* HANDLE */
// port access - host only (COM)
typedef struct myCOMPort_tag {
uint8_T access_count;
HANDLE hCom;
} myCOMPort;
#endif
// target : declare global user communication admin variables
extern myUsrBuf *freecomTelBuf[]; /* defined in mc_main.c */
#endif /* _FREEPORTCOMMS_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -