yysnmp.c
来自「此代码是实现将lwip协议移植于51单片机的测试程序」· C语言 代码 · 共 41 行
C
41 行
#include <general.h>
//#include <snmp.h>
//#include <word.h>
//#include <ethernet.h>
//Global variable
extern xdata union netcard rxdnet;
extern xdata union netcard txdnet;
extern xdata union ethernet_address_type my_ethernet_address; //本机的以太网地址
extern xdata union ethernet_address_type gateway_ethernet_address; //网关的以太网地址
extern xdata union ethernet_address_type ping_ethernet_address; //用来ping的以太网地址
extern xdata union ip_address_type my_ip_address; //本机的ip地址
extern xdata union ip_address_type gateway_ip_address; //网关的ip地址
extern xdata union ip_address_type mask_ip_address; //子网掩码
extern xdata union ip_address_type SNMP_ip_address; //网管SNMP主机的ip地址
extern xdata union ip_address_type ping_ip_address; //用于ping命令
extern xdata union ip_address_type temp_ip_address; //临时变量
//BoardSelect Function
//void opBoardSel(uchar num);
//Port bit
//isin;linkok;txspeed;pow0;pow1;
//String Function
//void PrintChar(unsigned char ch);
//void PrintHEX(unsigned char ch);
//void PrintWord(unsigned int Word);
//void PrintLong(unsigned long LongWord);
//void PrintStr(unsigned char *str);
void snmpcycle()//SNMP主循环
{
}
void udp_recv()//UDP收包处理
{
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?