12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
-
-
- #ifndef __MEM_H__
- #define __MEM_H__
-
- #include <stdint.h>
- #include <stdbool.h>
-
- #include "workflow.h"
- #include "wifi.h"
-
-
- #define MEM_VERSION 0
-
- struct mem_data {
-
-
- uint16_t net_count;
- struct net_credentials net[WIFI_MAX_NET_COUNT];
-
-
- uint16_t backlight;
- bool wf_auto_connect;
- bool enable_wifi;
-
-
- uint16_t wf_count;
- struct workflow wf[WF_MAX_FLOWS];
- };
-
-
- #define MEM_DATA_INIT { \
- .backlight = (0xFF00 >> 1), \
- .wf_auto_connect = false, \
- .enable_wifi = false, \
- .wf_count = 0, \
- .net_count = 0, \
- }
-
- void mem_load(void);
- void mem_write(void);
- struct mem_data *mem_data(void);
- void mem_load_defaults(void);
-
- #endif
|