client.h
来自「LWIP在STM32裸机上的移植」· C头文件 代码 · 共 35 行
H
35 行
#ifndef __SERVER_H__
#define __SERVER_H__
#include "lwip/pbuf.h"
#include "lwip/udp.h"
#include "lwip/tcp.h"
#include "stm32f10x.h"
#include "stm32f107.h"
#include <string.h>
#include <stdio.h>
#define UDP_SERVER_PORT 120 /* define the UDP local connection port */
#define UDP_CLIENT_PORT 121 /* define the UDP remote connection port */
#define TCP_PORT 123 /* define the TCP connection port */
#define ADC1_DR_Address ((uint32_t)0x4001244C)
extern void Delay(__IO uint32_t nCount);
void ADC_Configuration(void);
void Get_ADC_Data(void);
void Turn_ADC_Data(void);
/*Initialize the UDP client application.*/
void client_init(void);
void udp_server_callback(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, u16_t port);
/*Initialize the TCP client application.*/
void TCP_Client_Init(void);
err_t tcp_client_connected(void *arg, struct tcp_pcb *tpcb, err_t err);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?