aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods/modwlan.h
diff options
context:
space:
mode:
authorDaniel Campora2015-09-22 23:20:29 +0200
committerDaniel Campora2015-09-27 01:48:20 +0200
commitdbdcb58d6413a907e5f4aed25eee85073ff7e575 (patch)
tree0ecc90d3a3a947639549afde2b94c3d35b13fc2a /cc3200/mods/modwlan.h
parent81d64ab939ff45e74b0154e4ce2d9c5d2cfe6328 (diff)
cc3200: New irq API, affects all classes that provide the irq method.
Diffstat (limited to 'cc3200/mods/modwlan.h')
-rw-r--r--cc3200/mods/modwlan.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/cc3200/mods/modwlan.h b/cc3200/mods/modwlan.h
index 6693209d7..1386d2d19 100644
--- a/cc3200/mods/modwlan.h
+++ b/cc3200/mods/modwlan.h
@@ -35,6 +35,8 @@
#define SL_STOP_TIMEOUT 35
#define SL_STOP_TIMEOUT_LONG 575
+#define MODWLAN_WIFI_EVENT_ANY 0x01
+
/******************************************************************************
DEFINE TYPES
******************************************************************************/
@@ -45,6 +47,34 @@ typedef enum {
MODWLAN_ERROR_UNKNOWN = -3,
} modwlan_Status_t;
+typedef struct _wlan_obj_t {
+ mp_obj_base_t base;
+ mp_obj_t irq_obj;
+ uint32_t status;
+
+ uint32_t ip;
+
+ int8_t mode;
+ uint8_t security;
+ uint8_t channel;
+ uint8_t antenna;
+
+ // my own ssid, key and mac
+ uint8_t ssid[33];
+ uint8_t key[65];
+ uint8_t mac[SL_MAC_ADDR_LEN];
+
+ // the sssid (or name) and mac of the other device
+ uint8_t ssid_o[33];
+ uint8_t bssid[6];
+ uint8_t irq_flags;
+ bool irq_enabled;
+
+#if (MICROPY_PORT_HAS_TELNET || MICROPY_PORT_HAS_FTP)
+ bool servers_enabled;
+#endif
+} wlan_obj_t;
+
/******************************************************************************
DECLARE PUBLIC DATA
******************************************************************************/