Files | |
| file | appl.c |
| This file implements the eWicht application module. | |
| file | appl.h |
| This file includes the eWicht application module API. | |
| file | appldefs.h |
| This file defines some basic structures and enumerators for the application module. | |
| file | dialog.c |
| This file implements the dialog module. | |
| file | dialog.h |
| This file includes the dialog module API. | |
| file | eeprom_adds.h |
| This file includes a global address partion table for the eWicht EEPROM. | |
| file | error.c |
| This file implements error print functions. | |
| file | error.h |
| This file includes some common error codes. | |
Data Structures | |
| struct | SPAPPLDATA |
| This typedef defines the peristent structure for common application settings. More... | |
Defines | |
| #define | BOOTUP_EEPROM_ADD (0x0000u) |
| EEPROM byte address for application network data. | |
| #define | APPL_EEPROM_ADD (0x0100u) |
| EEPROM byte address for common application data. | |
Enumerations | |
| enum | _SEARCH_MODES { SEARCH_UNKNOWN = 0, SEARCH_IP, SEARCH_NAME, SEARCH_SERVICE } |
| This typedef defines the different ways to find and connect a server. More... | |
Functions | |
| void | ApplInit (void) |
| Call this function to initialize the application module. | |
| void | ApplMain (void) |
| Call this function periodically to execute the application module. | |
| IP_ADDR * | ApplGetServerIP (void) |
| Call this function to determine the IP address of the configured server for this device. | |
| NODE_INFO * | ApplGetServerNodeInfo (void) |
| Call this function to determine the node info (MAC and IP address) of the configured server for this device. | |
| WORD_VAL | ApplGetServerPort (void) |
| Call this function to determine the port (TCP/UDP) of the configured server for this device. | |
| BOOL | ApplIsConnected (void) |
| This proxy function delivers the connect state of the current project. | |
| void | ApplResetToFactory (BOOL KeepBootup) |
| This function restores the EEPROM content to a well known state. | |
| void | ApplShutDown (void) |
| The function initiates the shut down sequence while the application is still running. | |
| BOOL | ApplIsRunning (void) |
| The function is the indicator for the running application. | |
| void | ApplStop (void) |
| This function finally stops the application, i.e. | |
| void | ApplChangeLocoDirMode (BOOL Mode) |
| Call this function to change the current mode for changing the direction of a controlled loco. | |
| void | ApplRestart (BOOL ResetToFactory) |
| This function initiate a restart of the device. | |
Variables | |
| SPAPPLDATA | sPApplConfig |
| The persistent data field for common application data. | |
| BYTE | u8ApplTimer |
| The application timer runs backwards in units of 10 ms if different from zero. | |
| #define APPL_EEPROM_ADD (0x0100u) |
EEPROM byte address for common application data.
See SPAPPLDATA for a detailed documentation of the structure elements. On startup the data is loaded into RAM (sPApplConfig).
Definition at line 26 of file eeprom_adds.h.
| #define BOOTUP_EEPROM_ADD (0x0000u) |
EEPROM byte address for application network data.
See PCOMMON_CONFIG for a detailed documentation of the structure elements. On startup the data is loaded into RAM (sPCommonConfig).
Definition at line 18 of file eeprom_adds.h.
| enum _SEARCH_MODES |
This typedef defines the different ways to find and connect a server.
| void ApplChangeLocoDirMode | ( | BOOL | Mode | ) |
Call this function to change the current mode for changing the direction of a controlled loco.
| Mode | See TOGGLEDIRMODE_CLICK and TOGGLEDIRMODE_ZERO for details. |
| IP_ADDR* ApplGetServerIP | ( | void | ) |
| NODE_INFO* ApplGetServerNodeInfo | ( | void | ) |
| WORD_VAL ApplGetServerPort | ( | void | ) |
| BOOL ApplIsConnected | ( | void | ) |
| BOOL ApplIsRunning | ( | void | ) |
| void ApplMain | ( | void | ) |
| void ApplResetToFactory | ( | BOOL | KeepBootup | ) |
| void ApplRestart | ( | BOOL | ResetToFactory | ) |
| void ApplShutDown | ( | void | ) |
| void ApplStop | ( | void | ) |
The persistent data field for common application data.
The field stores common settings of the eWicht application. ApplInit loads the data which is stored in the data EEPROM into this SRAM field. The SRCP Menu, the eWicht web interface or the function BootupResetToFactory can change this fields and store it back to the EEPROM.
| BYTE u8ApplTimer |
1.5.5