Prius IPM controller

Dependencies:   mbed

Fork of analoghalls5_5 by N K

debug/debug.h

Committer:
bwang
Date:
2015-03-16
Revision:
35:83cf9564bd0c
Parent:
24:f1ff9c7256b5

File content as of revision 35:83cf9564bd0c:

#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