MOYA F.X. / Mbed 2 deprecated CAN_hsd_bt

Dependencies:   mbed

common.h

Committer:
priusfan
Date:
2012-04-09
Revision:
0:c0bb943bc2a7

File content as of revision 0:c0bb943bc2a7:

/*
 * 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 */