summaryrefslogtreecommitdiff
path: root/fw/esp32/components/eos/include/app.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/esp32/components/eos/include/app.h')
-rw-r--r--fw/esp32/components/eos/include/app.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/fw/esp32/components/eos/include/app.h b/fw/esp32/components/eos/include/app.h
index b6dba99..38fba1a 100644
--- a/fw/esp32/components/eos/include/app.h
+++ b/fw/esp32/components/eos/include/app.h
@@ -2,25 +2,20 @@
#include "net.h"
-/* common */
-#define EOS_APP_MTU 1500
-#define EOS_APP_SIZE_BUF EOS_APP_MTU
-
#define EOS_APP_MTYPE_TUN 1
#define EOS_APP_MAX_MTYPE 8
-/* esp32 specific */
-#define EOS_APP_SIZE_BUFQ 4
-#define EOS_APP_SIZE_SNDQ 4
-
void eos_app_init(void);
void eos_app_run(void);
-unsigned char *eos_app_alloc(void);
-void eos_app_free(unsigned char *buf);
+void eos_app_alloc(EOSMessage *msg);
+void eos_app_free(EOSMessage *msg);
-int eos_app_send(unsigned char mtype, unsigned char *buffer, uint16_t buf_len);
+int eos_app_send(unsigned char mtype, EOSMessage *msg, uint16_t len);
void eos_app_sleep_req(void);
void eos_app_wake(void);
+void eos_app_deep_sleep(void);
+void eos_app_deep_wake(void);
+
void eos_app_set_handler(unsigned char mtype, eos_net_handler_t handler);