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:
- 2:0ba43344c814
- Parent:
- 0:61c402886fbb
- Child:
- 3:9f90024d7fb2
--- a/YDwifi/YDwifi.h Fri Mar 07 02:13:09 2014 +0000
+++ b/YDwifi/YDwifi.h Tue Mar 11 10:38:36 2014 +0000
@@ -4,8 +4,13 @@
#include "mbed.h"
#include "rtos.h"
#include "RawSerial.h"
+
+#include "YDwifiUartCommand.h"
//#include "CBuffer.h"
+namespace murata_wifi
+{
+
/** C_YDwifi class
*/
class C_YDwifi
@@ -42,17 +47,32 @@
};
Thread *mUartRecvThread_p;
+ /** Send data to UART
+ @param len Length of send data
+ @param data Pointer of send data
+ @return 0:success/other:fail
+ */
+ int sendUart( unsigned int len, unsigned char *data );
+
+
protected:
+ /** GEN_FW_VER_GET_REQ Command */
+ typedef struct
+ {
+ unsigned char cmd_sid;
+ unsigned char seq;
+ }tagGEN_FW_VER_GET_REQ_T;
+
static C_YDwifi *mInstance_p;
- Mutex mUartMutex;
-// RawSerial mUart;
- Serial mUart;
- DigitalInOut mModuleReset;
-
- /* Function */
- void uartIntr_callback( void );
+ Mutex mUartMutex;
+ DigitalInOut mModuleReset;
+ C_YDwifiUartCommand mUartCommand;
+ RawSerial mUart;
+
static void uartRecvThread( void const *args_p );
+
};
+}
#endif
\ No newline at end of file
muRata

Murata TypeYD