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

LAN91C111 device driver
[Network device drivers.]

Ethernet device driver. More...


Modules

LAN91C111 registers
 SMSC LAN91C111 register definitions.

Device eth0
 SMSC LAN91C111 Ethernet device.


Functions

 NicRxLanc (void *arg)
 NIC receiver thread.

int LancOutput (NUTDEVICE *dev, NETBUF *nb)
 Send Ethernet packet.

int LancInit (NUTDEVICE *dev)
 Initialize Ethernet hardware.


Detailed Description

Ethernet device driver.

The LAN91C111 chip is used on the Ethernut 2 board.


Function Documentation

int LancInit NUTDEVICE   dev
 

Initialize Ethernet hardware.

Resets the LAN91C111 Ethernet controller, initializes all required hardware registers and starts a background thread for incoming Ethernet traffic.

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

If the network configuration hasn't been set by the application before registering the specified device, this function will call NutNetLoadConfig() to get the MAC address.

Parameters:
dev Identifies the device to initialize.

int LancOutput NUTDEVICE   dev,
NETBUF   nb
 

Send Ethernet packet.

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.


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