C:/nxpdrv/LPC1700CMSIS/Drivers/source/lpc17xx_emac.c File Reference
: Contains all functions support for Ethernet MAC firmware library on LPC17xx More...
#include "lpc17xx_emac.h"
#include "lpc17xx_clkpwr.h"
#include "lpc17xx_libcfg_default.h"
Go to the source code of this file.
Functions | |
void | setEmacAddr (uint8_t abStationAddr[]) |
Set Station MAC address for EMAC module. | |
Status | EMAC_Init (EMAC_CFG_Type *EMAC_ConfigStruct) |
Initializes the EMAC peripheral according to the specified parameters in the EMAC_ConfigStruct. | |
void | EMAC_DeInit (void) |
De-initializes the EMAC peripheral registers to their default reset values. | |
int32_t | EMAC_CheckPHYStatus (uint32_t ulPHYState) |
Check specified PHY status in EMAC peripheral. | |
int32_t | EMAC_SetPHYMode (uint32_t ulPHYMode) |
Set specified PHY mode in EMAC peripheral. | |
int32_t | EMAC_UpdatePHYStatus (void) |
Auto-Configures value for the EMAC configuration register to match with current PHY mode. | |
void | EMAC_SetHashFilter (uint8_t dstMAC_addr[], FunctionalState NewState) |
Enable/Disable hash filter functionality for specified destination MAC address in EMAC module. | |
int32_t | EMAC_CRCCalc (uint8_t frame_no_fcs[], int32_t frame_len) |
Calculates CRC code for number of bytes in the frame. | |
void | EMAC_SetFilterMode (uint32_t ulFilterMode, FunctionalState NewState) |
Enable/Disable Filter mode for each specified type EMAC peripheral. | |
FlagStatus | EMAC_GetWoLStatus (uint32_t ulWoLMode) |
Get status of Wake On LAN Filter for each specified type in EMAC peripheral, clear this status if it is set. | |
void | EMAC_WritePacketBuffer (EMAC_PACKETBUF_Type *pDataStruct) |
Write data to Tx packet data buffer at current index due to TxProduceIndex. | |
void | EMAC_ReadPacketBuffer (EMAC_PACKETBUF_Type *pDataStruct) |
Read data from Rx packet data buffer at current index due to RxConsumeIndex. | |
void | EMAC_StandardIRQHandler (void) |
Standard EMAC IRQ Handler. This sub-routine will check these following interrupt and call the call-back function if they're already installed:
| |
void | EMAC_SetupIntCBS (uint32_t ulIntType, EMAC_IntCBSType *pfnIntCb) |
Setup/register Call-back function for each interrupt type in EMAC module. | |
void | EMAC_IntCmd (uint32_t ulIntType, FunctionalState NewState) |
Enable/Disable interrupt for each type in EMAC. | |
IntStatus | EMAC_IntGetStatus (uint32_t ulIntType) |
Check whether if specified interrupt flag is set or not for each interrupt type in EMAC and clear interrupt pending if it is set. | |
Bool | EMAC_CheckReceiveIndex (void) |
Check whether if the current RxConsumeIndex is not equal to the current RxProduceIndex. | |
Bool | EMAC_CheckTransmitIndex (void) |
Check whether if the current TxProduceIndex is not equal to the current RxProduceIndex - 1. | |
FlagStatus | EMAC_CheckReceiveDataStatus (uint32_t ulRxStatType) |
Get current status value of receive data (due to RxConsumeIndex). | |
uint32_t | EMAC_GetReceiveDataSize (void) |
Get size of current Received data in received buffer (due to RxConsumeIndex). | |
void | EMAC_UpdateRxConsumeIndex (void) |
Increase the RxConsumeIndex (after reading the Receive buffer to release the Receive buffer) and wrap-around the index if it reaches the maximum Receive Number. | |
void | EMAC_UpdateTxProduceIndex (void) |
Increase the TxProduceIndex (after writting to the Transmit buffer to enable the Transmit buffer) and wrap-around the index if it reaches the maximum Transmit Number. | |
Variables | |
const uint8_t | EMAC_clkdiv [] = { 4, 6, 8, 10, 14, 20, 28 } |
Detailed Description
: Contains all functions support for Ethernet MAC firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 02. Jun. 2009
- Author:
- : HieuNguyen
Definition in file lpc17xx_emac.c.
Generated on Mon Feb 8 10:01:41 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by
