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.
Diff: common.h
- Revision:
- 0:c0bb943bc2a7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/common.h Mon Apr 09 15:27:55 2012 +0000
@@ -0,0 +1,30 @@
+/*
+ * File: common.h
+ * Author: teamprii
+ *
+ * Created on April 8, 2012, 6:49 PM
+ */
+
+#ifndef COMMON_H
+#define COMMON_H
+
+#include <vector>
+using namespace std;
+
+class reqTbl {
+public:
+ int id; // PID
+ int freq; // request frequency
+ int fcnt; // frequency counter
+ vector<int> code; // list of code; change from cod1, cod2 to a vector code and move to end of line in file for easier read
+ reqTbl();
+};
+
+reqTbl::reqTbl() {
+ fcnt = 0; // initialize frequency counter to 0
+}
+
+extern vector<reqTbl> reqTable;
+extern int reqNumTbl; // this will be just (int)reqTable.size()
+
+#endif /* COMMON_H */
\ No newline at end of file