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. | |
| void IPSetInit | ( | BOOL | bServer | ) |
The function inits the internal state machine (SM) of the IP dialogues and some internal variables.
| 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). |
| 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.
| 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. |
1.5.5