LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpc18xx_43xx_emac.h File Reference
#include "lwip/opt.h"
#include "lwip/netif.h"

Go to the source code of this file.

Functions

void lpc_enetif_input (struct netif *netif)
 Attempt to read a packet from the EMAC interface.
 
s32_t lpc_rx_queue (struct netif *netif)
 Attempt to allocate and requeue a new pbuf for RX.
 
s32_t lpc_tx_ready (struct netif *netif)
 Polls if an available TX descriptor is ready.
 
void lpc_tx_reclaim (struct netif *netif)
 Call for freeing TX buffers that are complete.
 
err_t lpc_enetif_init (struct netif *netif)
 LWIP 18xx/43xx EMAC initialization function.
 
void lpc_emac_set_duplex (int full_duplex)
 Set up the MAC interface duplex.
 
void lpc_emac_set_speed (int mbs_100)
 Set up the MAC interface speed.
 
void lpc_mii_write_noblock (u32_t PhyReg, u32_t Value)
 Write a value via the MII link (non-blocking)
 
err_t lpc_mii_write (u32_t PhyReg, u32_t Value)
 Write a value via the MII link (blocking)
 
u32_t lpc_mii_is_busy (void)
 Reads current MII link busy status.
 
u32_t lpc_mii_read_data (void)
 Read current value in MII data register.
 
void lpc_mii_read_noblock (u32_t PhyReg)
 Starts a read operation via the MII link (non-blocking)
 
err_t lpc_mii_read (u32_t PhyReg, u32_t *data)
 Read a value via the MII link (blocking)
 
void msDelay (uint32_t ms)
 Millisecond Delay function.