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
Revision 25:67183ed15708, committed 2014-03-28
- Comitter:
- kishino
- Date:
- Fri Mar 28 01:56:08 2014 +0000
- Parent:
- 24:987e412ae879
- Child:
- 26:f2e1030964e4
- Commit message:
- Created a base class for Murata named C_MurataObject.
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SNIC/MurataObject.cpp Fri Mar 28 01:56:08 2014 +0000 @@ -0,0 +1,17 @@ +/******************* Murata Manufacturing Co.,Ltd. 2014 ***************** + * + * Filename: MurataObject.cpp + * + * Purpose: This module has implementation of common function for Murata. + * + * $Author: kishino $ + * + * $Date: 2014/03/28 $ + * + * $Revision: 0.0.0.1 $ + * ***********************************************************************/ +#include "MurataObject.h" +#include "stdarg.h" + +using namespace murata_wifi; +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SNIC/MurataObject.h Fri Mar 28 01:56:08 2014 +0000
@@ -0,0 +1,24 @@
+/******************* Murata Manufacturing Co.,Ltd. 2014 *****************
+ *
+ * Filename: MurataObject.h
+ *
+ * Purpose: This module has define of common function for Murata.
+ *
+ * $Author: kishino $
+ *
+ * $Date: 2014/03/28 $
+ *
+ * $Revision: 0.0.0.1 $
+ * ***********************************************************************/
+#ifndef _MURATA_OBJECT_H_
+#define _MURATA_OBJECT_H_
+#include "mbed.h"
+
+namespace murata_wifi
+{
+
+class C_MurataObject{
+
+}
+
+#endif
--- a/SNIC/SNIC_Core.h Fri Mar 28 00:45:15 2014 +0000
+++ b/SNIC/SNIC_Core.h Fri Mar 28 01:56:08 2014 +0000
@@ -13,6 +13,7 @@
#ifndef _SNIC_CORE_H_
#define _SNIC_CORE_H_
+#include "MurataObject.h"
#include "mbed.h"
#include "rtos.h"
#include "RawSerial.h"
@@ -60,7 +61,7 @@
/** Internal class used by any other classes. This class is singleton.
*/
-class C_SNIC_Core
+class C_SNIC_Core: public C_MurataObject
{
friend class C_SNIC_UartCommandManager;
friend class C_SNIC_WifiInterface;
--- a/SNIC/SNIC_UartCommandManager.h Fri Mar 28 00:45:15 2014 +0000
+++ b/SNIC/SNIC_UartCommandManager.h Fri Mar 28 01:56:08 2014 +0000
@@ -13,6 +13,7 @@
* ***********************************************************************/
#ifndef _SNIC_UART_COMMAND_MANAGER_H_
#define _SNIC_UART_COMMAND_MANAGER_H_
+#include "MurataObject.h"
#include "mbed.h"
#include "rtos.h"
@@ -52,7 +53,7 @@
/** Internal class for managing the SNIC UART command.
*/
-class C_SNIC_UartCommandManager
+class C_SNIC_UartCommandManager: public C_MurataObject
{
friend class C_SNIC_Core;
friend class C_SNIC_WifiInterface;
--- a/SNIC/SNIC_UartMsgUtil.h Fri Mar 28 00:45:15 2014 +0000
+++ b/SNIC/SNIC_UartMsgUtil.h Fri Mar 28 01:56:08 2014 +0000
@@ -13,7 +13,7 @@
* ***********************************************************************/
#ifndef _SNIC_WIFI_UART_MSG_UTIL_H_
#define _SNIC_WIFI_UART_MSG_UTILH_
-
+#include "MurataObject.h"
#include "mbed.h"
#include "rtos.h"
#include "RawSerial.h"
@@ -133,7 +133,7 @@
/** Internal utility class used by any other classes.
*/
-class C_SNIC_UartMsgUtil
+class C_SNIC_UartMsgUtil: public C_MurataObject
{
friend class C_SNIC_Core;
--- a/SNIC_WifiInterface.h Fri Mar 28 00:45:15 2014 +0000
+++ b/SNIC_WifiInterface.h Fri Mar 28 01:56:08 2014 +0000
@@ -14,6 +14,7 @@
#define _SNIC_WIFIINTERFACE_H_
#include "SNIC_Core.h"
+#include "MurataObject.h"
namespace murata_wifi
{
@@ -31,7 +32,7 @@
/** Interface class for using SNIC UART.
*/
-class C_SNIC_WifiInterface {
+class C_SNIC_WifiInterface : public C_MurataObject {
public:
/** Constructor
@param tx mbed pin to use for tx line of Serial interface
--- a/Socket/Socket.h Fri Mar 28 00:45:15 2014 +0000
+++ b/Socket/Socket.h Fri Mar 28 01:56:08 2014 +0000
@@ -30,6 +30,7 @@
#ifndef SOCKET_H_
#define SOCKET_H_
+#include "MurataObject.h"
#include "SNIC_Core.h"
#include "SNIC_UartMsgUtil.h"
@@ -42,7 +43,7 @@
/** Socket file descriptor and select wrapper
*/
-class Socket {
+class Socket: public C_MurataObject {
public:
/** Socket
*/
--- a/Socket/TCPSocketConnection.h Fri Mar 28 00:45:15 2014 +0000 +++ b/Socket/TCPSocketConnection.h Fri Mar 28 01:56:08 2014 +0000 @@ -31,6 +31,7 @@ #ifndef TCPSOCKET_H #define TCPSOCKET_H +#include "MurataObject.h" #include "Socket.h" #include "Endpoint.h"
--- a/Socket/TCPSocketServer.h Fri Mar 28 00:45:15 2014 +0000 +++ b/Socket/TCPSocketServer.h Fri Mar 28 01:56:08 2014 +0000 @@ -30,6 +30,7 @@ #ifndef TCPSOCKETSERVER_H #define TCPSOCKETSERVER_H +#include "MurataObject.h" #include "Socket.h" #include "TCPSocketConnection.h"
--- a/Socket/UDPSocket.h Fri Mar 28 00:45:15 2014 +0000 +++ b/Socket/UDPSocket.h Fri Mar 28 01:56:08 2014 +0000 @@ -31,6 +31,7 @@ #ifndef UDPSOCKET_H #define UDPSOCKET_H +#include "MurataObject.h" #include "Socket.h" #include "Endpoint.h"
muRata

Murata TypeYD