Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: page.h
- Revision:
- 0:f8998d10763e
- Child:
- 1:2d59bba34a1e
diff -r 000000000000 -r f8998d10763e page.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/page.h Sun Jan 28 11:44:11 2018 +0000 @@ -0,0 +1,32 @@ +#include <time.h> +#include <stdint.h> + +extern void PageAddHeader (const char* title, const char* style, const char* script); +extern void PageAddNavItem (int highlight, char* href, char* title); +extern void PageAddNav (int page); //This must be defined outwith the library + +extern void PageAddLabelledValue(char* label, float labelwidth, char* value); +extern void PageAddLabelledMac (char* label, float labelwidth, char* mac); +extern void PageAddLabelledIp4 (char* label, float labelwidth, uint32_t ip); +extern void PageAddLabelledIp6 (char* label, float labelwidth, char* ip); +extern void PageAddLabelledName (char* label, float labelwidth, char* name, char* suffix); +extern void PageAddLabelledOnOff(char* label, float labelwidth, int value); +extern void PageAddLabelledInt (char* label, float labelwidth, int value); +extern void PageAddTm (struct tm* ptm); + +extern void PageAddTextInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, char* value); +extern void PageAddIntInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, int value); +extern void PageAddHexInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, char value0, char value1); +extern void PageAddCheckInput (char* action, char* label, char* name, char* button); + +extern void PageAddAjaxToggle (float labelwidth, char* label, char* id, char* request); +extern void PageAddAjaxHex (float labelwidth, char* label, float inputwidth, char* id, char* request); + +#define HOME_PAGE 0 +#define PROGRAM_PAGE 1 +#define HEATING_PAGE 2 +#define BOILER_PAGE 3 +#define SYSTEM_PAGE 4 +#define NET_PAGE 5 +#define LOG_PAGE 6 +#define TRACE_PAGE 7