a fork of priustroller

Dependencies:   mbed

Fork of priustroller_current by N K

debug/debug.h

Committer:
bwang
Date:
2015-03-09
Revision:
24:f1ff9c7256b5
Child:
53:ef62d7a958f2

File content as of revision 24:f1ff9c7256b5:

#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 _done;
    float *_buffer;
};

#endif