![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Go to the source code of this file.
Typedefs | |
| typedef IP_ENET_002_TXDESC_T | ENET_TXDESC_T |
| typedef IP_ENET_002_TXSTAT_T | ENET_TXSTAT_T |
| typedef IP_ENET_002_RXDESC_T | ENET_RXDESC_T |
| typedef IP_ENET_002_RXSTAT_T | ENET_RXSTAT_T |
| typedef IP_ENET_002_BUFF_STATUS_T | ENET_BUFF_STATUS |
Functions | |
| STATIC INLINE void | Chip_ENET_Reset (LPC_ENET_T *pENET) |
| Resets the ethernet interface. | |
| STATIC INLINE void | Chip_ENET_SetADDR (LPC_ENET_T *pENET, const uint8_t *macAddr) |
| Sets the address of the interface. | |
| STATIC INLINE void | Chip_ENET_SetupMII (LPC_ENET_T *pENET, uint32_t div, uint8_t addr) |
| Sets up the PHY link clock divider and PHY address. | |
| STATIC INLINE void | Chip_ENET_StartMIIWrite (LPC_ENET_T *pENET, uint8_t reg, uint16_t data) |
| Starts a PHY write via the MII. | |
| STATIC INLINE void | Chip_ENET_StartMIIRead (LPC_ENET_T *pENET, uint8_t reg) |
| Starts a PHY read via the MII. | |
| STATIC INLINE bool | Chip_ENET_IsMIIBusy (LPC_ENET_T *pENET) |
| Returns MII link (PHY) busy status. | |
| STATIC INLINE uint16_t | Chip_ENET_ReadMIIData (LPC_ENET_T *pENET) |
| Returns the value read from the PHY. | |
| STATIC INLINE void | Chip_ENET_TXEnable (LPC_ENET_T *pENET) |
| Enables ethernet transmit. | |
| STATIC INLINE void | Chip_ENET_TXDisable (LPC_ENET_T *pENET) |
| Disables ethernet transmit. | |
| STATIC INLINE void | Chip_ENET_RXEnable (LPC_ENET_T *pENET) |
| Enables ethernet packet reception. | |
| STATIC INLINE void | Chip_ENET_RXDisable (LPC_ENET_T *pENET) |
| Disables ethernet packet reception. | |
| STATIC INLINE void | Chip_ENET_ResetTXLogic (LPC_ENET_T *pENET) |
| Reset Tx Logic. | |
| STATIC INLINE void | Chip_ENET_ResetRXLogic (LPC_ENET_T *pENET) |
| Reset Rx Logic. | |
| STATIC INLINE void | Chip_ENET_EnableRXFilter (LPC_ENET_T *pENET, uint32_t mask) |
| Enable Rx Filter. | |
| STATIC INLINE void | Chip_ENET_DisableRXFilter (LPC_ENET_T *pENET, uint32_t mask) |
| Disable Rx Filter. | |
| STATIC INLINE void | Chip_ENET_SetFullDuplex (LPC_ENET_T *pENET) |
| Sets full duplex operation for the interface. | |
| STATIC INLINE void | Chip_ENET_SetHalfDuplex (LPC_ENET_T *pENET) |
| Sets half duplex operation for the interface. | |
| STATIC INLINE void | Chip_ENET_Set100Mbps (LPC_ENET_T *pENET) |
| Selects 100Mbps for the current speed. | |
| STATIC INLINE void | Chip_ENET_Set10Mbps (LPC_ENET_T *pENET) |
| Selects 10Mbps for the current speed. | |
| STATIC INLINE void | Chip_ENET_InitTxDescriptors (LPC_ENET_T *pENET, ENET_TXDESC_T *pDescs, ENET_TXSTAT_T *pStatus, uint32_t descNum) |
| Configures the initial ethernet transmit descriptors. | |
| STATIC INLINE void | Chip_ENET_InitRxDescriptors (LPC_ENET_T *pENET, ENET_RXDESC_T *pDescs, ENET_RXSTAT_T *pStatus, uint32_t descNum) |
| Configures the initial ethernet receive descriptors. | |
| STATIC INLINE uint16_t | Chip_ENET_GetTXProduceIndex (LPC_ENET_T *pENET) |
| Get the current Tx Produce Descriptor Index. | |
| STATIC INLINE uint16_t | Chip_ENET_GetTXConsumeIndex (LPC_ENET_T *pENET) |
| Get the current Tx Consume Descriptor Index. | |
| STATIC INLINE uint16_t | Chip_ENET_GetRXProduceIndex (LPC_ENET_T *pENET) |
| Get the current Rx Produce Descriptor Index. | |
| STATIC INLINE uint16_t | Chip_ENET_GetRXConsumeIndex (LPC_ENET_T *pENET) |
| Get the current Rx Consume Descriptor Index. | |
| STATIC INLINE ENET_BUFF_STATUS | Chip_ENET_GetBufferStatus (LPC_ENET_T *pENET, uint16_t produceIndex, uint16_t consumeIndex, uint16_t buffSize) |
| Get the buffer status with the current Produce Index and Consume Index. | |
| STATIC INLINE uint32_t | Chip_ENET_GetFillDescNum (LPC_ENET_T *pENET, uint16_t produceIndex, uint16_t consumeIndex, uint16_t buffSize) |
| Get the number of descriptors filled. | |
| STATIC INLINE uint32_t | Chip_ENET_GetFreeDescNum (LPC_ENET_T *pENET, uint16_t produceIndex, uint16_t consumeIndex, uint16_t buffSize) |
| Get the number of free descriptors. | |
| STATIC INLINE bool | Chip_ENET_IsTxFull (LPC_ENET_T *pENET) |
| Check if Tx buffer is full. | |
| STATIC INLINE bool | Chip_ENET_IsRxEmpty (LPC_ENET_T *pENET) |
| Check if Rx buffer is empty. | |
| STATIC INLINE uint16_t | Chip_ENET_IncTXProduceIndex (LPC_ENET_T *pENET) |
| Increase the current Tx Produce Descriptor Index. | |
| STATIC INLINE uint16_t | Chip_ENET_IncRXConsumeIndex (LPC_ENET_T *pENET) |
| Increase the current Rx Consume Descriptor Index. | |
| STATIC INLINE void | Chip_ENET_EnableInt (LPC_ENET_T *pENET, uint32_t mask) |
| Enable ENET interrupts. | |
| STATIC INLINE void | Chip_ENET_DisableInt (LPC_ENET_T *pENET, uint32_t mask) |
| Disable ENET interrupts. | |
| STATIC INLINE uint32_t | Chip_ENET_GetIntStatus (LPC_ENET_T *pENET) |
| Get the interrupt status. | |
| STATIC INLINE void | Chip_ENET_ClearIntStatus (LPC_ENET_T *pENET, uint32_t mask) |
| Clear the interrupt status. | |
| void | Chip_ENET_Init (LPC_ENET_T *pENET) |
| Initialize ethernet interface. | |
| void | Chip_ENET_DeInit (LPC_ENET_T *pENET) |
| De-initialize the ethernet interface. | |
| uint32_t | Chip_ENET_FindMIIDiv (LPC_ENET_T *pENET, uint32_t clockRate) |
| Find the divider index for a desired MII clock rate. | |