ethernet.h File Reference


Detailed Description

Ethernet header (license: GPLv2).

Author:
Roland Riegel


Defines

#define ETHERNET_FRAME_TYPE_IP
 Protocol identifier of the IP protocol.
#define ETHERNET_FRAME_TYPE_ARP
 Protocol identifier of the ARP protocol.
#define ethernet_get_buffer()
 Retrieves a pointer to the ethernet transmit buffer.
#define ethernet_get_buffer_size()
 Retrieves the maximum payload size of the transmit buffer.

Functions

void ethernet_init (const uint8_t *mac)
 Initializes the ethernet layer and assigns an ethernet address.
bool ethernet_handle_packet ()
 Reads incoming packets and forwards them to the appropriate higher-level protocol.
bool ethernet_send_packet (const uint8_t *mac_dest, uint16_t type, uint16_t data_len)
 Sends data from the transmit buffer to a remote host.
const uint8_t * ethernet_get_mac ()
 Retrieves the current ethernet address.


Generated on Thu May 22 18:12:37 2008 for mega-eth by  doxygen 1.5.5