N K
/
GaNtroller
a fork of priustroller
Fork of priustroller_current by
debug/debug.h@55:f102d271e808, 2015-05-21 (annotated)
- Committer:
- nki
- Date:
- Thu May 21 02:19:25 2015 +0000
- Revision:
- 55:f102d271e808
- Parent:
- 53:ef62d7a958f2
still testing;
Who changed what in which revision?
User | Revision | Line number | New 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 |