当前位置:网站首页>关于STM32使用LAN8720A插拔网线重连
关于STM32使用LAN8720A插拔网线重连
2022-06-25 13:17:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
关于STM32使用LAN8720A插拔网线重连
其实在做这个功能的时候大家一定要心平气和,不要认为有多复杂,多看DATASHEET,当然后面会遇到一些问题,所以在踩过坑之后,过了差不多一年了,也算是回过头来做个记录吧。 1.关于LAN8720的手册解读 通过查阅lan8720的数据收册:
标黄部分,在寄存器映射中第一个寄存器为基本状态寄存器,然后我们通过查阅这个寄存器发现,
在该寄存器的bit2中说明了,当检测网线插入的时候该位为1,否则为0。知道这个那就好办了,我们可以根据这个状态位去判断网线的接入状态,然后去决定是否行关于以太网的操作。
2.程序实现 在我的程序规划中主要涉及一下函数: 1.这个函数放到While循环中,或者某一时基的中断函数中:
2.该函数放到Net_Rest_Connect函数中
3.Net_Rest_Connect函数
这里在判断到网线连接之后,进行协议栈的初始化以及TCP服务器的初始化操作。
4.附上工程链接:https://download.csdn.net/download/tiange1996/85045262
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/151704.html原文链接:https://javaforall.cn
边栏推荐
- VGA display of de2-115 FPGA development board
- DE2-115 FPGA开发板的VGA显示
- 请问通达信股票开户是安全的吗?
- OpenStack-----Nova源码分析之创建虚拟机
- Explain the possible memory leaks caused by the handler at one time and the solutions | the developer said · dtalk
- Simple realization of mine sweeping
- [pit avoidance refers to "difficult"] antd cascader implements new customized functions
- 数据采集系统网关采集工厂效率
- Method for wrapping multiple promise instances into a new promise instance
- “移动云杯”算力网络应用创新大赛火热报名中!
猜你喜欢

历史上的今天:网易成立;首届消费电子展召开;世界上第一次网络直播

初始c语言时的一些知识

1251- client does not support authentication protocol MySQL error resolution

leetcode:918. 环形子数组的最大和【逆向思维 + 最大子数组和】

多台云服务器的 Kubernetes 集群搭建

Application of tactile intelligent sharing-rk3568 in financial self-service terminal

leetcode:剑指 Offer II 091. 粉刷房子【二维dp】

关于扫雷的简易实现

权益NFT开创者Hash Eagle如何重新定义NFT,用权益赋能长续价值?

Detailed explanation of string operation functions and memory functions
随机推荐
删库跑路、“投毒”、改协议,开源有哪几大红线千万不能踩?
Nova中的api
完整详细的汇编实验报告
算力&NFT交易平台F3.xyz旗下独家权益NFT项目Hash Eagle将盛大发行
[pit avoidance means "difficult"] to realize editable drag and drop sorting of protable
多台云服务器的 Kubernetes 集群搭建
How to solve SQL import
[data visualization] antv L7 realizes map visualization, drilldownlayer drill asynchronously obtains data, and suspends the warning box
阻止深度神经网络过拟合(Mysteries of Neural Networks Part II)
OpenStack学习笔记(一)
Shenzhen mintai'an intelligent second side_ The first offer of autumn recruitment
国信证券股票开户是安全的吗?
戴尔电脑cpu温度过高怎么办
Download File blob transcoding
VGA display of de2-115 FPGA development board
Of binary tree_ Huffman tree_ Huffman encoding
Openstack learning notes (II)
What if the CPU temperature of Dell computer is too high
Is it safe to open an account with tongdaxin stock?
Openstack learning notes -nova component insight