summaryrefslogtreecommitdiff
path: root/code/fe310/eos/wifi.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-12-04 06:09:59 +0100
committerUros Majstorovic <majstor@majstor.org>2019-12-04 06:09:59 +0100
commit2c981aec5e5c10f9fd036dfb48105b16f16e4233 (patch)
tree4d191cbb595202579c961214a116fe0e1faeb5e7 /code/fe310/eos/wifi.h
parentda01d561d0c0365d985516d3696b17302fd33770 (diff)
net bugfix; net alloc changed
Diffstat (limited to 'code/fe310/eos/wifi.h')
-rw-r--r--code/fe310/eos/wifi.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/code/fe310/eos/wifi.h b/code/fe310/eos/wifi.h
new file mode 100644
index 0000000..d46d25b
--- /dev/null
+++ b/code/fe310/eos/wifi.h
@@ -0,0 +1,14 @@
+#include <stdint.h>
+
+#define EOS_WIFI_MTYPE_SCAN 0
+#define EOS_WIFI_MTYPE_CONNECT 1
+#define EOS_WIFI_MTYPE_DISCONNECT 2
+
+#define EOS_WIFI_MAX_MTYPE 3
+
+typedef void (*eos_wifi_fptr_t) (unsigned char *, uint16_t);
+
+void eos_wifi_init(void);
+void eos_wifi_connect(const char *ssid, const char *pass);
+void eos_wifi_disconnect(void);
+void eos_wifi_set_handler(int mtype, eos_wifi_fptr_t handler, uint8_t flags); \ No newline at end of file