a fork of priustroller

Dependencies:   mbed

Fork of priustroller_current by N K

Committer:
bwang
Date:
Sat May 02 00:21:00 2015 +0000
Revision:
53:ef62d7a958f2
Parent:
24:f1ff9c7256b5
throttle filter

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bwang 24:f1ff9c7256b5 1 #ifndef __DEBUG_H
bwang 24:f1ff9c7256b5 2 #define __DEBUG_H
bwang 24:f1ff9c7256b5 3
bwang 24:f1ff9c7256b5 4 #include "includes.h"
bwang 24:f1ff9c7256b5 5 #include "context.h"
bwang 24:f1ff9c7256b5 6
bwang 24:f1ff9c7256b5 7 class BufferedDebugger {
bwang 24:f1ff9c7256b5 8 public:
bwang 24:f1ff9c7256b5 9 BufferedDebugger(Context *context, int channels, int size);
bwang 24:f1ff9c7256b5 10 void Write(int channel, float f);
bwang 24:f1ff9c7256b5 11 void Flush();
bwang 24:f1ff9c7256b5 12 void Restart();
bwang 24:f1ff9c7256b5 13 private:
bwang 24:f1ff9c7256b5 14 Context *_context;
bwang 24:f1ff9c7256b5 15 int _size;
bwang 24:f1ff9c7256b5 16 int _channels;
bwang 24:f1ff9c7256b5 17 int *_index;
bwang 53:ef62d7a958f2 18 int _triggered;
bwang 24:f1ff9c7256b5 19 int _done;
bwang 24:f1ff9c7256b5 20 float *_buffer;
bwang 24:f1ff9c7256b5 21 };
bwang 24:f1ff9c7256b5 22
bwang 24:f1ff9c7256b5 23 #endif