summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/include/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/esp32/components/eos/include/net.h')
-rw-r--r--code/esp32/components/eos/include/net.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/code/esp32/components/eos/include/net.h b/code/esp32/components/eos/include/net.h
index df1bd0d..818776e 100644
--- a/code/esp32/components/eos/include/net.h
+++ b/code/esp32/components/eos/include/net.h
@@ -1,7 +1,10 @@
#include <stdint.h>
+/* common */
+#define EOS_NET_SIZE_BUF 1500
+
#define EOS_NET_MTYPE_SOCK 1
-#define EOS_NET_MTYPE_AUDIO 2
+#define EOS_NET_MTYPE_POWER 4
#define EOS_NET_MTYPE_WIFI 5
#define EOS_NET_MTYPE_CELL 6
@@ -10,9 +13,9 @@
#define EOS_NET_MAX_MTYPE 8
-#define EOS_NET_MTYPE_FLAG_ONEW 0x10
+#define EOS_NET_MTYPE_FLAG_ONEW 0x80
-#define EOS_NET_SIZE_BUF 1500
+/* esp32 specific */
#define EOS_NET_SIZE_BUFQ 4
#define EOS_NET_SIZE_SNDQ 4
@@ -25,4 +28,6 @@ void eos_net_init(void);
unsigned char *eos_net_alloc(void);
void eos_net_free(unsigned char *buf);
int eos_net_send(unsigned char mtype, unsigned char *buffer, uint16_t len, uint8_t flags);
-void eos_net_set_handler(unsigned char mtype, eos_net_fptr_t handler); \ No newline at end of file
+void eos_net_set_handler(unsigned char mtype, eos_net_fptr_t handler);
+void eos_net_sleep_done(void);
+void eos_net_wake(uint8_t source);