LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
enet_18xx_43xx.h File Reference
#include "chip.h"

Go to the source code of this file.

Functions

void Chip_ENET_Init (void)
 Initialize ethernet interface.
 
void Chip_ENET_DeInit (void)
 De-initialize the ethernet interface.
 
STATIC INLINE void Chip_ENET_Reset (void)
 Resets the ethernet interface.
 
STATIC INLINE void Chip_ENET_SetADDR (const uint8_t *macAddr)
 Sets the address of the interface.
 
STATIC INLINE void Chip_ENET_Setup_MII (uint32_t div, uint8_t addr)
 Sets up the PHY link clock divider and PHY address.
 
STATIC INLINE void Chip_ENET_Start_MII_Write (uint8_t reg, uint16_t data)
 Starts a PHY write via the MII.
 
STATIC INLINE void Chip_ENET_Start_MII_Read (uint8_t reg)
 Starts a PHY read via the MII.
 
STATIC INLINE bool Chip_ENET_Is_MII_Busy (void)
 Returns MII link (PHY) busy status.
 
STATIC INLINE uint16_t Chip_ENET_Read_MII_Data (void)
 Returns the value read from the PHY.
 
STATIC INLINE void Chip_ENET_TX_Enable (bool Enable)
 Enables or disables ethernet transmit.
 
STATIC INLINE void Chip_ENET_RX_Enable (bool Enable)
 Enables or disables ethernet packet reception.
 
STATIC INLINE void Chip_ENET_Set_Duplex (bool full)
 Sets full or half duplex for the interface.
 
STATIC INLINE void Chip_ENET_Set_Speed (bool speed100)
 Sets speed for the interface.
 
STATIC INLINE void Chip_ENET_InitDescriptors (IP_ENET_001_ENHTXDESC_Type *pTXDescs, IP_ENET_001_ENHRXDESC_Type *pRXDescs)
 Configures the initial ethernet descriptors.
 
STATIC INLINE void Chip_ENET_RXStart (void)
 Starts receive polling of RX descriptors.
 
STATIC INLINE void Chip_ENET_TXStart (void)
 Starts transmit polling of TX descriptors.