example1.h

来自「移植到51单片机的UIP代码」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef _EXAMPLE1_H_
#define _EXAMPLE1_H_

typedef     unsigned char	INT8U;		/* 8 bit 无符号整型  */
typedef     unsigned int    INT16U;     /* 16 bit 无符号整型 */


void BufUartStr( unsigned char *buf, unsigned int len );
void example1_init(void);
void example1_app(void);

/* UIP_APPCALL: the name of the application function. This function
   must return void and take no arguments (i.e., C type "void
   appfunc(void)"). */
#ifndef UIP_APPCALL
#define UIP_APPCALL       example1_app
#endif

#ifndef UIP_UDP_APPCALL	
#define UIP_UDP_APPCALL  udp_appcall
#endif


struct example2_state {
   enum {WELCOME_SENT, WELCOME_ACKED} state;
};

/* UIP_APPSTATE_SIZE: The size of the application-specific state
   stored in the uip_conn structure. */
#ifndef UIP_APPSTATE_SIZE
#define UIP_APPSTATE_SIZE sizeof(struct example2_state)
#endif


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?