Functions

emac.c File Reference

#include "emac.h"
#include "../timer/timer.h"
#include "../lpc_config.h"
#include "../uart/uart.h"
#include "../cli/debug.h"
#include "../cli/api.h"

Go to the source code of this file.

Functions

void write_PHY (int PhyReg, int Value)
unsigned short read_PHY (unsigned char PhyReg)
void rx_descr_init (void)
void tx_descr_init (void)
int Init_EMAC (void)
 configure port-pins for use with LAN-controller, reset it and send the configuration-sequence
unsigned short ReadFrame_EMAC (void)
unsigned short ReadFrameBE_EMAC (void)
void CopyFromFrame_EMAC (void *Dest, unsigned short Size)
void DummyReadFrame_EMAC (unsigned short Size)
unsigned short StartReadFrame (void)
void EndReadFrame (void)
unsigned int CheckFrameReceived (void)
unsigned int uiGetEMACRxData (unsigned char *ucBuffer)
void RequestSend (void)
unsigned int Rdy4Tx (void)
void WriteFrame_EMAC (unsigned short Data)
void CopyToFrame_EMAC (void *Source, unsigned int Size)
void DoSend_EMAC (unsigned short FrameSize)

Function Documentation

unsigned int CheckFrameReceived ( void   ) 

Definition at line 328 of file emac.c.

void CopyFromFrame_EMAC ( void *  Dest,
unsigned short  Size 
)

Definition at line 277 of file emac.c.

Here is the call graph for this function:

void CopyToFrame_EMAC ( void *  Source,
unsigned int  Size 
)

Definition at line 381 of file emac.c.

Here is the call graph for this function:

void DoSend_EMAC ( unsigned short  FrameSize  ) 

Definition at line 393 of file emac.c.

void DummyReadFrame_EMAC ( unsigned short  Size  ) 

Definition at line 295 of file emac.c.

Here is the call graph for this function:

void EndReadFrame ( void   ) 

Definition at line 316 of file emac.c.

int Init_EMAC ( void   ) 

Definition at line 120 of file emac.c.

Here is the call graph for this function:

unsigned int Rdy4Tx ( void   ) 

Definition at line 364 of file emac.c.

unsigned short read_PHY ( unsigned char  PhyReg  ) 

Definition at line 56 of file emac.c.

unsigned short ReadFrame_EMAC ( void   ) 

Definition at line 254 of file emac.c.

unsigned short ReadFrameBE_EMAC ( void   ) 

Definition at line 263 of file emac.c.

void RequestSend ( void   ) 

Definition at line 353 of file emac.c.

void rx_descr_init ( void   ) 

Definition at line 76 of file emac.c.

unsigned short StartReadFrame ( void   ) 

Definition at line 306 of file emac.c.

void tx_descr_init ( void   ) 

Definition at line 98 of file emac.c.

unsigned int uiGetEMACRxData ( unsigned char *  ucBuffer  ) 

Definition at line 336 of file emac.c.

Here is the call graph for this function:

void write_PHY ( int  PhyReg,
int  Value 
)

Definition at line 38 of file emac.c.

void WriteFrame_EMAC ( unsigned short  Data  ) 

Definition at line 371 of file emac.c.