summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/net/wifi.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2026-01-07 22:58:33 +0100
committerUros Majstorovic <majstor@majstor.org>2026-01-07 22:58:33 +0100
commit46b08fc235f3f068034355970697acc0956e5c99 (patch)
tree96e2bde5d95c295a57afae353684a25544fb09fa /fw/fe310/eos/net/wifi.h
parent285ddd410a559449b7e2cbab9b2b10e850efbd08 (diff)
introduced EOSMessage struct for SPI and Event queue messages; added APP <-> FE310 bridge SPI messages; LCD/touch panel driver for app module; save relevant state to AON module before sleep;
Diffstat (limited to 'fw/fe310/eos/net/wifi.h')
-rw-r--r--fw/fe310/eos/net/wifi.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/fw/fe310/eos/net/wifi.h b/fw/fe310/eos/net/wifi.h
index 800723e..1f64d73 100644
--- a/fw/fe310/eos/net/wifi.h
+++ b/fw/fe310/eos/net/wifi.h
@@ -25,10 +25,11 @@ void eos_wifi_init(void);
void eos_wifi_set_handler(unsigned char mtype, eos_evt_handler_t handler);
eos_evt_handler_t eos_wifi_get_handler(unsigned char mtype);
-int eos_wifi_status_parse(unsigned char *buffer, uint16_t buf_len, uint8_t *status, uint8_t ip_addr[], char *ssid, uint16_t ssid_size);
-int eos_wifi_status(uint8_t *status, uint8_t ip_addr[], char *ssid, uint16_t ssid_size, unsigned char *buffer);
-int eos_wifi_start(unsigned char *buffer, int sync);
-int eos_wifi_stop(unsigned char *buffer, int sync);
-int eos_wifi_scan(unsigned char *buffer, int sync);
-int eos_wifi_connect(char *ssid, char *pwd, unsigned char *buffer, int sync);
-int eos_wifi_disconnect(unsigned char *buffer, int sync);
+int eos_wifi_status_parse(EOSMessage *msg, uint16_t len, uint8_t *status, uint8_t ip_addr[], char *ssid, uint16_t ssid_size);
+int eos_wifi_status(uint8_t *status, uint8_t ip_addr[], char *ssid, uint16_t ssid_size, EOSMessage *msg);
+int eos_wifi_start(EOSMessage *msg);
+int eos_wifi_stop(EOSMessage *msg);
+int eos_wifi_scan(EOSMessage *msg);
+unsigned char *eos_wifi_scan2data(EOSMessage *msg, uint16_t *len);
+int eos_wifi_connect(char *ssid, char *pwd, EOSMessage *msg);
+int eos_wifi_disconnect(EOSMessage *msg);