IP dialogues


Detailed Description

This routines handle the input of various IP settings needed for eWicht and the connection to SRCP server(s).

The dialogues can be aborted or confirmed. In case of a positive acknowledgement the IPSET routines save the data to the eWicht EEPROM.


Files

file  ipset.c
 Implementation of IP input dialogs.
file  ipset.h
 Prototypes for calling the IP input dialogues.

Functions

void IPSetInit (BOOL bServer)
 The function inits the internal state machine (SM) of the IP dialogues and some internal variables.
BOOL IPSetMain (void)
 This function handles the dialogues.


Function Documentation

void IPSetInit ( BOOL  bServer  ) 

The function inits the internal state machine (SM) of the IP dialogues and some internal variables.

Parameters:
bServer If TRUE, the IP dialogs requests the input of server parameters like address of the server and port. If FALSE the internal SM requests the common IP parameters (IP address, subnet mask and gateway IP address).

Definition at line 108 of file ipset.c.

BOOL IPSetMain ( void   ) 

This function handles the dialogues.

The main application must call this function periodically until it returns TRUE. The user can abort the dialog pressing the PWR_BTN.

Precondition:
The function IPSetInit must be called.
Return values:
TRUE The user has finished or aborted the dialog. In case the user has finished, the dialog stores the new data peristent in EEPROM memory of eWicht. After the dialog has finished, the main application can directly work with the new data.
FALSE The dialog is still running, call again later.

Definition at line 146 of file ipset.c.


Generated on Sun Nov 27 20:02:40 2011 for eWicht by  doxygen 1.5.5