Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Definitions.h
- Revision:
- 0:61544337ff5e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Definitions.h Thu May 03 20:39:50 2018 +0000
@@ -0,0 +1,13 @@
+#ifndef DEFINITIONS_H
+#define DEFINITIONS_H
+
+enum { ADC_LENGTH = 4 };
+
+typedef struct Signal {
+ float& operator[](unsigned i) { return channel[i]; }
+ float channel[ADC_LENGTH];
+} Signal;
+
+typedef std::vector<Signal> SignalBuf;
+
+#endif
\ No newline at end of file
