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

Network Configuration
[Nut/Net API]

Collaboration diagram for Network Configuration:


Detailed Description

Nut/Nut configuration structure.


Data Structures

struct  _CONFNET
 Network configuration structure. More...
struct  _CONFNET
 Network configuration structure. More...

Defines

#define CONFNET_EE_OFFSET   64
 Non-volatile memory location.
#define CONFNET_MAX_IF   1

Typedefs

typedef _CONFNET CONFNET
 Network configuration type.

Functions

int NutNetLoadConfig (CONST char *name)
 Load network configuration from non-volatile memory.
int NutNetSaveConfig (void)
 Save network configuration in non-volatile memory.

Variables

CONFNET confnet
 Global network configuration structure.
CONFNET confnet
 Global network configuration structure.


Define Documentation

#define CONFNET_EE_OFFSET   64
 

Non-volatile memory location.

Offset into non-volatile memory, where Nut/Net stores the network configuration. The default may be overridden by the Configurator.


Function Documentation

int NutNetLoadConfig CONST char *  name  ) 
 

Load network configuration from non-volatile memory.

If no configuration is available in EEPROM, all configuration parameters are cleared to zero. Except the MAC address, which is set to the Ethernet broadcast address.

Parameters:
name Name of the device.
Returns:
0 if configuration has been read. Otherwise the return value is -1.

int NutNetSaveConfig void   ) 
 

Save network configuration in non-volatile memory.

Returns:
0 if OK, -1 on failures.


Variable Documentation

CONFNET confnet
 

Global network configuration structure.

Contains the current network configuration. Nut/Net will load this structure from non-volatile memory during initialization.

CONFNET confnet
 

Global network configuration structure.

Contains the current network configuration. Nut/Net will load this structure from non-volatile memory during initialization.


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