代码搜索结果
找到约 10,000 项符合
Ethernet 的代码
ethernet.lst
C51 COMPILER V7.02b ETHERNET 12/10/2005 21:31:08 PAGE 1
C51 COMPILER V7.02b, COMPILATION OF MODULE ETHERNET
OBJECT MODULE PLACED
ethernet.c
/*****************************************/
/* Copyright (c) 2005, 通信工程学院 */
/* All rights reserved. */
/* 作 者:戴 佳 */
/****************************************
ethernet.inc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; ETHERNET.INC
ethernet.c
#define ETHERNET_GLOBALS
#include "config.h"
#include "../include/cfg_net.h"
uint8 My_Ip_1ID[4]=MY_IP_1ID;
uint8 My_Gateway_1ID[4]=MY_GATEWAY_1ID;
uint8 MY_IP_MARK_1ID[4]=IP_MARK_1ID;
uint8 MY
ethernet.h
#ifdef ETHERNET_GLOBALS
#define ETHERNET_EXT
#else
#define ETHERNET_EXT extern
#endif
#define IP_PACKED 0x01
#define ARP_PACKED 0x02
#define MAX_NET_PORT 0x01
typedef struct {
ethernet.h
#ifndef _ETHERNET_H
#define _ETHERNET_H_
#include
#include "ARP.h"
typedef struct EthernetPkt
{
struct EthernetPkt *pPrev; /* Previous record */
s
ethernet.c
#include "Ethernet.h"
void EthernetPktRcv()
{
EthernetPkt *pEthernet;
//receive the ethernet pkt now here.
/*---check whether the ethernet pkt is an ARP packet--
ethernet.h
#include "target.h"
#define HW_Address_Size 6 /* Length of Ethernet Addresses */
#define TYPE_LENGTH 2 /* Length of Header Type/Length Field */
#define MTU_Siz