MOYA F.X. / Mbed 2 deprecated CAN_hsd_bt

Dependencies:   mbed

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