XgConfOs


Data Structures

struct  _CONFOS
 Operating system configuration structure. More...

Defines

#define CONFOS_EE_MAGIC   "OS"
#define CONFOS_EE_OFFSET   0
 Non-volatile memory location.

Functions

struct __attribute__ ((packed)) _CONFOS CONFOS
 Operating system configuration type.
__BEGIN_DECLS int NutLoadConfig (void)
 Load Nut/OS configuration from non-volatile memory.
int NutSaveConfig (void)
 Save Nut/OS configuration in non-volatile memory.

Variables

CONFOS confos
 Global system configuration structure.
CONFOS confos
 Global system configuration structure.


Define Documentation

#define CONFOS_EE_OFFSET   0

Non-volatile memory location.

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


Function Documentation

struct __attribute__ ( (packed)   ) 

Operating system configuration type.

Once created, this structure will never change if it points to another directory. Except if the entry is removed.

< Packet opcode type: 1=request, 2=reply

< Hardware address type: 1=Ethernet

< Hardware address length: 6 for Ethernet

< Gateway hops

< Transaction ID

< Seconds since boot began

< RFC1532 broadcast, etc.

< Client IP address

< 'Your' IP address

< Server IP address

< Gateway IP address

< Client hardware address

< Server host name

< Boot file name

< Vendor-specific area

int NutLoadConfig ( void   ) 

Load Nut/OS configuration from non-volatile memory.

This routine is automatically called during system initialization.

Returns:
0 if OK, -1 if configuration isn't available.

int NutSaveConfig ( void   ) 

Save Nut/OS configuration in non-volatile memory.

Returns:
0 if OK, -1 on failures.


Variable Documentation

CONFOS confos

Global system configuration structure.

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

CONFOS confos

Global system configuration structure.

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


Generated on Tue Jan 23 21:12:31 2007 for BTnut System Software by doxygen 1.4.7