Low-level Ethernet driver interface for the LPC1768 EMAC. More...
Low-level Ethernet driver interface for the LPC1768 EMAC.
Definition in file eth.h.
Include dependency graph for eth.h:Go to the source code of this file.
Functions | |
| int | lpc1768_eth_init (const uint8_t *mac) |
| Initialize the EMAC peripheral and PHY. | |
| int | lpc1768_eth_send (const iolist_t *iolist) |
| Submit a frame for transmission. | |
| int | lpc1768_eth_recv (void *buf, size_t max_len) |
| Receive a frame from the RX ring. | |
| void | lpc1768_eth_get_mac (uint8_t out[6]) |
| Read the currently programmed MAC address. | |
| void | lpc1768_eth_set_mac (const uint8_t mac[6]) |
| Program a new MAC address. | |
| bool | lpc1768_eth_link_up (void) |
| Read the PHY link status (BMSR.LINK) | |
| bool | lpc1768_eth_rx_pending (void) |
| Return true if the RX ring contains at least one unconsumed frame. | |
| int | lpc1768_eth_tx_status (void) |
| Query the completion status of the most recent transmission. | |
| void | lpc1768_eth_set_promiscuous (bool enable) |
| Enable or disable promiscuous mode. | |
| bool | lpc1768_eth_get_promiscuous (void) |
| Return the current promiscuous mode setting. | |
| void | lpc1768_eth_set_link_speed (uint16_t speed) |
| Configure the MAC for a given link speed and duplex. | |
| int | lpc1768_eth_start_auto_negotiation (void) |
| Start PHY auto-negotiation. | |
| void | lpc1768_eth_complete_auto_negotiation (void) |
| Complete auto-negotiation and apply speed/duplex to the MAC. | |