⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ip_arp_udp_tcp.h

📁 STM32 USART1 2 3三串口收发
💻 H
字号:
/********************************************* * vim:sw=8:ts=8:si:et * To use the above modeline in vim you must have "set modeline" in your .vimrc * Author: Guido Socher  * Copyright: GPL V2 * * IP/ARP/UDP/TCP functions * * Chip type           : ATMEGA88 with ENC28J60 *********************************************///@{
/*

                         \\\|///
                       \\  - -  //
                        (  @ @  )
+---------------------oOOo-(_)-oOOo-------------------------+
|                       WEB SERVER                          |
|            ported to LPC2103 ARM7TDMI-S CPU               |
|                     by Xiaoran Liu                        |
|                       2007.12.16                          |
|                 ZERO research Instutute                   |
|                      www.the0.net                         |
|                            Oooo                           |
+----------------------oooO--(   )--------------------------+
                      (   )   ) /
                       \ (   (_/
                        \_)     

*/
#ifndef IP_ARP_UDP_TCP_H#define IP_ARP_UDP_TCP_H
#include "types.h"// you must call this function once before you use any of the other functions:extern void init_ip_arp_udp_tcp(uint8_t *mymac,uint8_t *myip,uint8_t wwwp);//extern uint8_t eth_type_is_arp_and_my_ip(uint8_t *buf,uint16_t len);extern uint8_t eth_type_is_ip_and_my_ip(uint8_t *buf,uint16_t len);extern void make_arp_answer_from_request(uint8_t *buf);extern void make_echo_reply_from_request(uint8_t *buf,uint16_t len);extern void make_udp_reply_from_request(uint8_t *buf,char *data,uint8_t datalen,uint16_t port);extern void make_tcp_synack_from_syn(uint8_t *buf);extern void init_len_info(uint8_t *buf);extern uint16_t get_tcp_data_pointer(void);extern uint16_t fill_tcp_data_p(uint8_t *buf,uint16_t pos, const prog_char *progmem_s);extern uint16_t fill_tcp_data(uint8_t *buf,uint16_t pos, const char *s);extern void make_tcp_ack_from_any(uint8_t *buf);extern void make_tcp_ack_with_data(uint8_t *buf,uint16_t dlen);#endif /* IP_ARP_UDP_TCP_H *///@}

⌨️ 快捷键说明

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