summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/net.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-05-20 19:12:47 +0200
committerUros Majstorovic <majstor@majstor.org>2021-05-20 19:12:47 +0200
commit42d5c7be2c6bea5c03f55f43ad34b4bc28d50bcc (patch)
tree3b6cb33f5b211d8f32500e3a01e6ef066b9a4eac /fw/fe310/eos/net.h
parent3cac09c89fe0081f06188f1e9440de5d863951be (diff)
net protocol added req/rep messages
Diffstat (limited to 'fw/fe310/eos/net.h')
-rw-r--r--fw/fe310/eos/net.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/fw/fe310/eos/net.h b/fw/fe310/eos/net.h
index 1aaea1f..ecefbec 100644
--- a/fw/fe310/eos/net.h
+++ b/fw/fe310/eos/net.h
@@ -14,16 +14,17 @@
#define EOS_NET_MAX_MTYPE 8
-#define EOS_NET_MTYPE_FLAG_ONEW 0x80
+#define EOS_NET_MTYPE_FLAG_ONEW 0x40
+#define EOS_NET_MTYPE_FLAG_REPW 0x80
+#define EOS_NET_MTYPE_FLAG_MASK 0xc0
/* fe310 specific */
#define EOS_NET_SIZE_BUFQ 2
void eos_net_init(void);
-void eos_net_start(void);
+void eos_net_start(uint8_t wakeup_cause);
void eos_net_stop(void);
int eos_net_sleep(uint32_t timeout);
-int eos_net_wake(uint8_t source);
void eos_net_bad_handler(unsigned char type, unsigned char *buffer, uint16_t len);
void eos_net_set_handler(unsigned char type, eos_evt_handler_t handler);
@@ -34,3 +35,4 @@ void eos_net_release(void);
unsigned char *eos_net_alloc(void);
void eos_net_free(unsigned char *buffer, unsigned char more);
int eos_net_send(unsigned char type, unsigned char *buffer, uint16_t len, unsigned char more);
+int eos_net_xchg(unsigned char *type, unsigned char *buffer, uint16_t *len);