2018-12-21 3

Dependents:   mbed-os-rest-api-V1-2 mbed-os-rest-api-V1-2-2

Revision:
0:833da29046f9
Child:
1:3b10241770d7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DataStorage.h	Fri Dec 21 07:54:17 2018 +0000
@@ -0,0 +1,54 @@
+#ifndef DATASTORAGE_H
+#define DATASTORAGE_H
+
+#include "module_for_all.h"
+
+class DataStorage {
+public:
+
+    DataStorage();
+    DataStorage(std::string);
+    
+    static bool isAccept;
+    static int noAcceptCount;
+    
+    static int ipSelect;
+    static char* ipChar;
+    static std::string ipStr;
+    
+    static std::string http_method;
+    static std::string api_command;
+    static std::string response;
+    
+    //int* WM_PWM;
+    //int (*WM_PWM)[2];
+    static int WM_PWM[5][2];
+    
+    static DigitalOut  _W1_A;
+    static DigitalOut  _W1_B;
+    //static DigitalIn  _W1_Ai;
+    //static DigitalIn  _W1_Bi;
+    
+    static DigitalOut  _W2_A;
+    static DigitalOut  _W2_B;
+    static DigitalOut  _W3_A;
+    static DigitalOut  _W3_B;
+    static DigitalOut  _W4_A;
+    static DigitalOut  _W4_B;
+    static DigitalOut* WM_Control_out[4][2];
+    
+    static PwmOut _WM_PWM_out01;
+    static PwmOut _WM_PWM_out02;
+    static PwmOut _WM_PWM_out03;
+    static PwmOut _WM_PWM_out04;
+    static PwmOut* WM_PWM_out[4];
+    
+    /* Define function */
+    //void setConfig_PWM(PwmOut**, int[5][2]);
+    //int get_testInt1();
+    
+private:
+    int _moveDirection;//1~16
+};
+
+#endif
\ No newline at end of file