DP

Dependencies:   FastAnalogIn mbed-rtos mbed

Fork of dipl_prace_v10 by Roman Krejci

print.h

Committer:
romankrej
Date:
2015-04-28
Revision:
1:28d74f044818
Parent:
0:f3b355df6f26

File content as of revision 1:28d74f044818:

#ifndef _PRINT_H
#define _PRINT_H

#include "mbed.h"
#include "rtos.h"

class cPrint {
    private:
        Serial s;
        FILE *fp;
        Timer timer;
        float t;
    public:
        cPrint(PinName pinT, PinName pinR);
        void log(char *message);
        void print(float data);
        void print(int data);
        void print(char data);
        void printStates();
        void open();
        int close();
};

#endif