Nelson Santos / Mbed 2 deprecated trabalho

Dependencies:   X_NUCLEO_IKS01A1-f255a2c75ecb mbed-rtos mbed

userMethods.h

Committer:
Jacinta
Date:
2016-05-18
Revision:
31:8bbdfea60151
Parent:
25:2197b8bb930c
Child:
34:0d51133891d0
Child:
35:34bbca276f99

File content as of revision 31:8bbdfea60151:

#ifndef USERMETHODS_H
#define USERMETHODS_H

#include <vector>
#include "log.h"
#include "sensor.h"

using std::vector;

#define QUEUESIZE 120


// Class that will proccess the user commands on main 
class UserMethods
{
public:
    UserMethods(int num, ExpansionBoard sensor, bool lFlag);
    static void logging(const void*);
    static void readAllData(const void*);
    static void readNData(const void*);
    int deleteAllData(const void*);
    int deleteNData(const void*);
    static vector<log_data> * v;
    static int * n;
    static bool flag;
    static ExpansionBoard * e;
};

#endif