stock mbed AnalogReads current loop closed and working

Dependencies:   mbed

Fork of priustroller_2 by N K

debug/debug.h

Committer:
bwang
Date:
2016-01-31
Revision:
56:85a26f839af2
Parent:
53:ef62d7a958f2

File content as of revision 56:85a26f839af2:

#ifndef __DEBUG_H
#define __DEBUG_H

#include "includes.h"
#include "context.h"

class BufferedDebugger {
public:
    BufferedDebugger(Context *context, int channels, int size);
    void Write(int channel, float f);
    void Flush();
    void Restart();
private:
    Context *_context;
    int _size;
    int _channels;
    int *_index;
    int _triggered;
    int _done;
    float *_buffer;
};

#endif