s0_usertel.h
来自「simulink real-time workshop for dragon12」· C头文件 代码 · 共 37 行
H
37 行
/******************************************************************************/
/* Header file 's0_userTel.h' */
/******************************************************************************/
#ifndef _S0_USERTEL_
#define _S0_USERTEL_
// maximum number of user data communication channels
#define MAX_UCOM_CHANNELS 5 /* maximum number of user communication channels */
#define MAX_BUF_SIZE 50 /* currently limited to 50 data bytes (FW-08-06) */
#ifndef _FREEPORTCOMMS_
#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 /* _FREEPORTCOMMS_ */
// target : declare global user communication admin variables
extern myUsrBuf *userTelBuf[]; /* defined in ext_svr.c */
extern int_T user_txd_queue[]; /* defined in ext_svr.c */
extern int_T num_user_channels_active; /* defined in ext_svr.c */
extern int_T next_user_channel_index; /* defined in ext_svr.c */
#endif /* _S0_USERTEL_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?