Dallas Semiconductor DS80C400 C Libraries Home Page

Main Page   Data Structures   File List   Data Fields   Globals  

rom400_xnetstack.h File Reference


Detailed Description

Enhanced network stack for the DS80C400 ROM.

This library contains a replacement network stack with better performance and more standards compliant functionality. Since this library will replace the default ROM network stack, be careful of the physical location this library. If this library is targeted to reside in flash memory, your system will be limited by the speed of your flash.

To use this functionality, add xnetstack_install() to your program before calling rominit and add the library to your build process.

For detailed information on the DS80C400 please see the High-Speed Microcontroller User's Guide: DS80C400 Supplement.

Go to the source code of this file.

Defines

#define ROM400_XNETSTACK_VERSION   11

Functions

void xnetstack_install (void)
 Installs the enhanced network stack.

unsigned int xnetstack_version (void)
 Returns the version number of this library.

void xnetstack_set_tcptimeoutfactor (int factor)
 Sets a factor to scale all TCP timeouts.

int xnetstack_get_tcptimeoutfactor (void)
 Gets the factor to scale all TCP timeouts.

void xnetstack_set_ipv6 (int enable)
 Enables/disables IPv6.

void xnetstack_set_icmpechoreplies (int enable)
 Enables/disables ICMP echo replies.

void xnetstack_set_icmpdestinationunreachable (int enable)
 Enables/disables ICMP destination unreachable messages.

void xnetstack_set_igmpreporttype (int type)
 Sets the IGMP membership report type.


Define Documentation

#define ROM400_XNETSTACK_VERSION   11
 

Version number associated with this header file. Should be the same as the version number returned by the xnetstack_version function.

See also:
xnetstack_version


Function Documentation

int xnetstack_get_tcptimeoutfactor void   
 

Gets the factor to scale all TCP timeouts.

Returns:
TCP scale factor
See also:
xnetstack_set_tcptimeoutfactor

void xnetstack_install void   
 

Installs the enhanced network stack.

This function installs the enhanced network stack functionality. The function has to be called before rom_init().

void xnetstack_set_icmpdestinationunreachable int    enable
 

Enables/disables ICMP destination unreachable messages.

Parameters:
enable 1 to enable, 0 to disable
Setting this to 0 prevents the network stack from generating ICMP destination unreachables (i.e. the device will not respond when an unused port is accessed).

void xnetstack_set_icmpechoreplies int    enable
 

Enables/disables ICMP echo replies.

Parameters:
enable 1 to enable, 0 to disable
Setting this to 0 prevents the network stack from generating ICMP echo replies (i.e. the device will no longer respond to "ping").

void xnetstack_set_igmpreporttype int    type
 

Sets the IGMP membership report type.

Parameters:
type (0x12 for version 1, 0x16 for version 2)
NOTE: This does not enable IGMPv2 compatibility, it merely changes the type of membership reports to work around a problem with certain switches. The default is IGMPv1.

void xnetstack_set_ipv6 int    enable
 

Enables/disables IPv6.

Parameters:
enable 1 to enable, 0 to disable
NOTE: This function disables the IPv6 receiver and transmitter. An application can still send packet to IPv6 addresses without receiving an error message; these packets will be discarded at the driver level.

void xnetstack_set_tcptimeoutfactor int    factor
 

Sets a factor to scale all TCP timeouts.

Parameters:
factor TCP scale factor (1 to 255, default: 32)
See also:
xnetstack_get_tcptimeoutfactor

unsigned int xnetstack_version void   
 

Returns the version number of this library.

Returns:
Version number of this library.


Copyright 2004 Dallas Semiconductor, Inc.. Documentation generated by Doxygen.