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

📄 client.h

📁 LWIP在STM32裸机上的移植
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -