SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Diff: YDwifi/YDwifi.h
- Revision:
- 3:9f90024d7fb2
- Parent:
- 2:0ba43344c814
- Child:
- 4:99cc93fe7d88
--- a/YDwifi/YDwifi.h Tue Mar 11 10:38:36 2014 +0000
+++ b/YDwifi/YDwifi.h Thu Mar 13 01:34:56 2014 +0000
@@ -20,14 +20,29 @@
/** Wi-Fi security
*/
typedef enum SECURITY {
+ /** Securiry Open */
e_SEC_OPEN = 0x00,
+ /** Securiry WEP */
e_SEC_WEP = 0x01,
+ /** Securiry WPA-PSK(TKIP) */
e_SEC_WPA_TKIP = 0x02,
+ /** Securiry WPA2-PSK(AES) */
e_SEC_WPA2_AES = 0x04,
+ /** Securiry WPA2-PSK(TKIP/AES) */
e_SEC_WPA2_MIXED = 0x06,
+ /** Securiry WPA-PSK(AES) */
e_SEC_WPA_AES = 0x07
}E_SECURITY;
+ /** Wi-Fi Network type
+ */
+ typedef enum NETWORK_TYPE {
+ /** Infrastructure */
+ e_INFRA = 0,
+ /** Adhoc */
+ e_ADHOC = 1
+ }E_NETWORK_TYPE;
+
// ----- YDwifi.cpp -----
/** Constructor
* \param tx mbed pin to use for tx line of Serial interface
@@ -63,6 +78,25 @@
unsigned char seq;
}tagGEN_FW_VER_GET_REQ_T;
+ /** WIFI_DISCONNECT_REQ Command */
+ typedef struct
+ {
+ unsigned char cmd_sid;
+ unsigned char seq;
+ }tagWIFI_DISCONNECT_REQ_T;
+
+ /** WIFI_SCAN_REQ Command */
+ typedef struct
+ {
+ unsigned char cmd_sid;
+ unsigned char seq;
+ unsigned char scan_type;
+ unsigned char bss_type;
+ unsigned char bssid[BSSID_MAC_LENTH];
+ unsigned char chan_list;
+ unsigned char ssid[SSID_MAX_LENGTH+1];
+ }tagWIFI_SCAN_REQ_T;
+
static C_YDwifi *mInstance_p;
Mutex mUartMutex;
muRata

Murata TypeYD