aboutsummaryrefslogtreecommitdiff
path: root/firmwares/wifishield/wifiHD/src/wl_definitions.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2012-09-13 10:42:25 -0400
committerDavid A. Mellis <d.mellis@arduino.cc>2012-09-13 10:42:25 -0400
commitbd45bf50c7c68ec35c3aad8c5e7bf4d3db9cafc1 (patch)
treec02065cc7b15ce5f0a8eaa9f0030a268b37c89bb /firmwares/wifishield/wifiHD/src/wl_definitions.h
parent6225a8596005bfb0be68fa641f5b47d01a95c12d (diff)
parent0d9a111face4f3629bcae8e52af843792af3b453 (diff)
Merge branch 'master' of ../wifishield
Diffstat (limited to 'firmwares/wifishield/wifiHD/src/wl_definitions.h')
-rw-r--r--firmwares/wifishield/wifiHD/src/wl_definitions.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/firmwares/wifishield/wifiHD/src/wl_definitions.h b/firmwares/wifishield/wifiHD/src/wl_definitions.h
new file mode 100644
index 0000000..b07c203
--- /dev/null
+++ b/firmwares/wifishield/wifiHD/src/wl_definitions.h
@@ -0,0 +1,39 @@
+/*
+ * wl_definitions.h
+ *
+ * Created on: Mar 6, 2011
+ * Author: mlf by Metodo2 srl
+ */
+
+#ifndef WL_DEFINITIONS_H_
+#define WL_DEFINITIONS_H_
+
+// Maximum size of a SSID
+#define WL_SSID_MAX_LENGTH 32
+// Length of passphrase. Valid lengths are 8-63.
+#define WL_WPA_KEY_MAX_LENGTH 63
+// Length of key in bytes. Valid values are 5 and 13.
+#define WL_WEP_KEY_MAX_LENGTH 13
+// Size of a MAC-address or BSSID
+#define WL_MAC_ADDR_LENGTH 6
+// Size of a MAC-address or BSSID
+#define WL_IPV4_LENGTH 4
+// Maximum size of a SSID list
+#define WL_NETWORKS_LIST_MAXNUM 10
+// Maxmium number of socket
+#define MAX_SOCK_NUM 4
+//Maximum number of attempts to establish wifi connection
+#define WL_MAX_ATTEMPT_CONNECTION 10
+
+typedef enum {
+ WL_IDLE_STATUS,
+ WL_NO_SSID_AVAIL,
+ WL_SCAN_COMPLETED,
+ WL_CONNECTED,
+ WL_CONNECT_FAILED,
+ WL_CONNECTION_LOST,
+ WL_DISCONNECTED
+} wl_status_t;
+
+
+#endif /* WL_DEFINITIONS_H_ */