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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/code/esp32/components/eos/include/net.h b/code/esp32/components/eos/include/net.h
index 3ce142a..d6f3f34 100644
--- a/code/esp32/components/eos/include/net.h
+++ b/code/esp32/components/eos/include/net.h
@@ -13,12 +13,15 @@
#define EOS_NET_MTYPE_FLAG_ONEW 0x10
#define EOS_NET_SIZE_BUF 1500
-#define EOS_NET_SIZE_BUFQ 64
+#define EOS_NET_SIZE_BUFQ 8
+#define EOS_NET_SIZE_SNDQ 16
-#define EOS_NET_FLAG_BUF_FREE 0x01
+#define EOS_NET_FLAG_BFREE 0x1
+#define EOS_NET_FLAG_BCOPY 0x2
typedef void (*eos_net_fptr_t) (unsigned char, unsigned char *, uint16_t);
void eos_net_init(void);
+unsigned char *eos_net_alloc(void);
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