Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

XgEmacSam7x


Functions

 EmacRxThread (void *arg)
 NIC receiver thread.
int EmacOutput (NUTDEVICE *dev, NETBUF *nb)
 Send Ethernet packet.
int EmacInit (NUTDEVICE *dev)
 Initialize Ethernet hardware.

Variables

NUTDEVICE devSam7xEmac
 Device information structure.


Function Documentation

int EmacInit NUTDEVICE dev  ) 
 

Initialize Ethernet hardware.

Applications should do not directly call this function. It is automatically executed during during device registration by NutRegisterDevice().

Parameters:
dev Identifies the device to initialize.

int EmacOutput NUTDEVICE dev,
NETBUF nb
 

Send Ethernet packet.

Todo:
This routine does not work.
Parameters:
dev Identifies the device to use.
nb Network buffer structure containing the packet to be sent. The structure must have been allocated by a previous call NutNetBufAlloc().
Returns:
0 on success, -1 in case of any errors.


Variable Documentation

NUTDEVICE devSam7xEmac
 

Device information structure.

A pointer to this structure must be passed to NutRegisterDevice() to bind this Ethernet device driver to the Nut/OS kernel. An application may then call NutNetIfConfig() with the name eth0 of this driver to initialize the network interface.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/