From dbdcb58d6413a907e5f4aed25eee85073ff7e575 Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Tue, 22 Sep 2015 23:20:29 +0200 Subject: cc3200: New irq API, affects all classes that provide the irq method. --- cc3200/mods/modwlan.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'cc3200/mods/modwlan.h') 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 ******************************************************************************/ -- cgit v1.2.3