eth.h

Go to the documentation of this file.
00001 /*
00002  * uIP_Task.h
00003  *
00004  *  Created on: 06/01/2011
00005  *      Author: fanl
00006  */
00007 
00008 #ifndef UIP_TASK_H_
00009 #define UIP_TASK_H_
00010 
00011 
00012 /* How long to wait before attempting to connect the MAC again. */
00013 #define uipINIT_WAIT    100
00014 
00015 /* Shortcut to the header within the Rx buffer. */
00016 #define xHeader ((struct uip_eth_hdr *) &uip_buf[ 0 ])
00017 
00018 /* Standard constant. */
00019 #define uipTOTAL_FRAME_HEADER_SIZE      54
00020 
00021 
00022 void ethernet_init();
00023 void ethernet_task();
00024 void set_eth_addr(void);
00025 
00026 #endif /* UIP_TASK_H_ */