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

Go to the source code of this file.

Functions

void IP_ENET_Reset (IP_ENET_001_Type *LPC_ENET)
 Resets the ethernet interface.
 
void IP_ENET_SetADDR (IP_ENET_001_Type *LPC_ENET, const uint8_t *macAddr)
 Sets the address of the interface.
 
void IP_ENET_Init (IP_ENET_001_Type *LPC_ENET)
 Initialize ethernet interface.
 
void IP_ENET_SetupMII (IP_ENET_001_Type *LPC_ENET, uint32_t div, uint8_t addr)
 Sets up the PHY link clock divider and PHY address.
 
void IP_ENET_DeInit (IP_ENET_001_Type *LPC_ENET)
 De-initialize the ethernet interface.
 
void IP_ENET_StartMIIWrite (IP_ENET_001_Type *LPC_ENET, uint8_t reg, uint16_t data)
 Starts a PHY write via the MII.
 
void IP_ENET_StartMIIRead (IP_ENET_001_Type *LPC_ENET, uint8_t reg)
 Starts a PHY read via the MII.
 
bool IP_ENET_IsMIIBusy (IP_ENET_001_Type *LPC_ENET)
 Returns MII link (PHY) busy status.
 
void IP_ENET_TXEnable (IP_ENET_001_Type *LPC_ENET, bool Enable)
 Enables or disables ethernet transmit.
 
void IP_ENET_RXEnable (IP_ENET_001_Type *LPC_ENET, bool Enable)
 Enables or disables ethernet packet reception.
 
void IP_ENET_SetDuplex (IP_ENET_001_Type *LPC_ENET, bool full)
 Sets full or half duplex for the interface.
 
void IP_ENET_SetSpeed (IP_ENET_001_Type *LPC_ENET, bool speed100)
 Sets speed for the interface.
 
void IP_ENET_InitDescriptors (IP_ENET_001_Type *LPC_ENET, IP_ENET_001_ENHTXDESC_Type *pTXDescs, IP_ENET_001_ENHRXDESC_Type *pRXDescs)
 Configures the initial ethernet descriptors.
 

Variables

STATIC uint32_t phyCfg
 

Variable Documentation

STATIC uint32_t phyCfg

Definition at line 39 of file enet_001.c.