Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-os-rest-api-V1-2 mbed-os-rest-api-V1-2-2
DataStorage.h
00001 #ifndef DATASTORAGE_H 00002 #define DATASTORAGE_H 00003 00004 #include "module_for_all.h" 00005 00006 class DataStorage 00007 { 00008 public: 00009 DataStorage(); 00010 DataStorage(std::string); 00011 00012 static bool isAccept; 00013 static int noAcceptCount; 00014 static bool isNoConnectServer; 00015 00016 static int ipSelect; 00017 static char *ipChar; 00018 static std::string ipStr; 00019 static bool isTestMode; 00020 00021 static std::string http_method; 00022 static std::string api_command; 00023 static std::string response; 00024 00025 //int* WM_PWM; 00026 //int (*WM_PWM)[2]; 00027 static int WM_PWM[5][2]; 00028 00029 static DigitalOut _W1_A; 00030 static DigitalOut _W1_B; 00031 //static DigitalIn _W1_Ai; 00032 //static DigitalIn _W1_Bi; 00033 00034 static DigitalOut _W2_A; 00035 static DigitalOut _W2_B; 00036 static DigitalOut _W3_A; 00037 static DigitalOut _W3_B; 00038 static DigitalOut _W4_A; 00039 static DigitalOut _W4_B; 00040 static DigitalOut *WM_Control_out[4][2]; 00041 00042 static PwmOut _WM_PWM_out01; 00043 static PwmOut _WM_PWM_out02; 00044 static PwmOut _WM_PWM_out03; 00045 static PwmOut _WM_PWM_out04; 00046 static PwmOut *WM_PWM_out[4]; 00047 00048 static DigitalIn *isIR[6]; 00049 static DigitalIn isIR_1; 00050 static DigitalIn isIR_2; 00051 static DigitalIn isIR_3; 00052 static DigitalIn isIR_4; 00053 static DigitalIn isIR_5; 00054 static DigitalIn isIR_6; 00055 00056 static AnalogIn *ainIR[6][3]; 00057 static AnalogIn ainIR_11; 00058 static AnalogIn ainIR_12; 00059 static AnalogIn ainIR_13; 00060 00061 static AnalogIn ainIR_21; 00062 static AnalogIn ainIR_22; 00063 static AnalogIn ainIR_23; 00064 00065 static AnalogIn ainIR_31; 00066 static AnalogIn ainIR_32; 00067 static AnalogIn ainIR_33; 00068 00069 static AnalogIn ainIR_41; 00070 static AnalogIn ainIR_42; 00071 static AnalogIn ainIR_43; 00072 00073 static AnalogIn ainIR_51; 00074 static AnalogIn ainIR_52; 00075 static AnalogIn ainIR_53; 00076 00077 static AnalogIn ainIR_61; 00078 static AnalogIn ainIR_62; 00079 00080 /* Define function */ 00081 //void setConfig_PWM(PwmOut**, int[5][2]); 00082 //int get_testInt1(); 00083 00084 void set_PWM_write(int, float); 00085 void set_PWM_period(int, float); 00086 static void set_PWM_status(int, int, int); 00087 00088 private: 00089 int _moveDirection; //1~16 00090 }; 00091 00092 #endif
Generated on Tue Jul 12 2022 20:05:47 by
