| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
enet_002.c File Reference
`#include "enet_002.h"`

Go to the source code of this file.

## Functions
void | IP_ENET_Reset (IP_ENET_002_T *pENET)
| Resets the ethernet interface.
void | IP_ENET_SetADDR (IP_ENET_002_T *pENET, const uint8_t *macAddr)
| Sets the address of the interface.
void | IP_ENET_Init (IP_ENET_002_T *pENET)
| Initialize ethernet interface.
void | IP_ENET_SetupMII (IP_ENET_002_T *pENET, uint8_t div, uint8_t addr)
| Sets up the PHY link clock divider and PHY address.
void | IP_ENET_DeInit (IP_ENET_002_T *pENET)
| De-initialize the ethernet interface.
void | IP_ENET_StartMIIWrite (IP_ENET_002_T *pENET, uint8_t reg, uint16_t data)
| Starts a PHY write via the MII.
void | IP_ENET_StartMIIRead (IP_ENET_002_T *pENET, uint8_t reg)
| Starts a PHY read via the MII.
bool | IP_ENET_IsMIIBusy (IP_ENET_002_T *pENET)
| Returns MII link (PHY) busy status.
uint16_t | IP_ENET_ReadMIIData (IP_ENET_002_T *pENET)
| Returns the value read from the PHY.
void | IP_ENET_InitTxDescriptors (IP_ENET_002_T *pENET, IP_ENET_002_TXDESC_T *pDescs, IP_ENET_002_TXSTAT_T *pStatus, uint32_t descNum)
| Configures the initial ethernet transmit descriptors.
void | IP_ENET_InitRxDescriptors (IP_ENET_002_T *pENET, IP_ENET_002_RXDESC_T *pDescs, IP_ENET_002_RXSTAT_T *pStatus, uint32_t descNum)
| Configures the initial ethernet receive descriptors.
IP_ENET_002_BUFF_STATUS_T | IP_ENET_GetBufferStatus (uint16_t produceIndex, uint16_t consumeIndex, uint16_t buffSize)
| Get status for the descriptor list.
uint32_t | IP_ENET_GetFillDescNum (uint16_t produceIndex, uint16_t consumeIndex, uint16_t buffSize)
| Get the number of descriptors filled.
uint16_t | IP_ENET_IncTXProduceIndex (IP_ENET_002_T *pENET)
| Increase the current Tx Produce Descriptor Index.
uint16_t | IP_ENET_IncRXConsumeIndex (IP_ENET_002_T *pENET)
| Increase the current Rx Consume Descriptor Index.

## Variables
STATIC uint32_t | phyAddr

## Variable Documentation

STATIC uint32_t phyAddr

Definition at line 39 of file enet_002.c.