Prius IPM controller

Dependencies:   mbed

Fork of analoghalls5_5 by N K

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers debug.h Source File

debug.h

00001 #ifndef __DEBUG_H
00002 #define __DEBUG_H
00003 
00004 #include "includes.h"
00005 #include "context.h"
00006 
00007 class BufferedDebugger {
00008 public:
00009     BufferedDebugger(Context *context, int channels, int size);
00010     void Write(int channel, float f);
00011     void Flush();
00012     void Restart();
00013 private:
00014     Context *_context;
00015     int _size;
00016     int _channels;
00017     int *_index;
00018     int _done;
00019     float *_buffer;
00020 };
00021 
00022 #endif