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

Crystal CS8900A
[Ethernet]


Detailed Description

10 MBit Ethernet controller.

The device driver for the CS8900A is poorly supported. Be prepared that some debugging may be required when using it with the latest Nut/Net release.


Functions

void CSWrite16 (u_short addr, u_short data)
void CSWritePP16 (u_short addr, u_short data)
u_short CSRead16 (u_short addr)
u_short CSReadPP16 (u_short addr)
u_long CSReadPP32 (u_int addr)
void CSBeginFrame (void)
void CSEndFrame (void)
void CSWriteFrameByte (u_char data)
int CSNicOutput (NUTDEVICE *dev, NETBUF *nb)
 Send Ethernet packet.
void CSNICrx (void *arg)
void CSSoftwareWakeup (void)
void CSSoftwareReset (void)
int CSNicInit (NUTDEVICE *dev)
 Initialize Ethernet Interface.

Variables

u_char cs_flags
volatile u_short cs_base = 0x0000


Function Documentation

int CSNicOutput 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(). This buffer will be automatically released in case of an error.
Returns:
0 on success, -1 in case of any errors. Errors will automatically release the network buffer structure.

int CSNicInit NUTDEVICE dev  ) 
 

Initialize Ethernet Interface.

Applications typically do not use this function, but call NutNetIfConfig().

Parameters:
dev Identifies the device to initialize. The structure must be properly set.


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