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. |