stock mbed AnalogReads current loop closed and working

Dependencies:   mbed

Fork of priustroller by Bayley Wang

Committer:
nki
Date:
Thu Apr 16 04:08:47 2015 +0000
Revision:
36:11766b5da6ed
Parent:
24:f1ff9c7256b5
running code, buggy at high current

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 24:f1ff9c7256b5 18 int _done;
bwang 24:f1ff9c7256b5 19 float *_buffer;
bwang 24:f1ff9c7256b5 20 };
bwang 24:f1ff9c7256b5 21
bwang 24:f1ff9c7256b5 22 #endif