Gunar Kroeger / Mbed OS AcusticLocator
Committer:
gunarthon
Date:
Thu May 03 20:39:50 2018 +0000
Revision:
0:61544337ff5e
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gunarthon 0:61544337ff5e 1 #ifndef DEFINITIONS_H
gunarthon 0:61544337ff5e 2 #define DEFINITIONS_H
gunarthon 0:61544337ff5e 3
gunarthon 0:61544337ff5e 4 enum { ADC_LENGTH = 4 };
gunarthon 0:61544337ff5e 5
gunarthon 0:61544337ff5e 6 typedef struct Signal {
gunarthon 0:61544337ff5e 7 float& operator[](unsigned i) { return channel[i]; }
gunarthon 0:61544337ff5e 8 float channel[ADC_LENGTH];
gunarthon 0:61544337ff5e 9 } Signal;
gunarthon 0:61544337ff5e 10
gunarthon 0:61544337ff5e 11 typedef std::vector<Signal> SignalBuf;
gunarthon 0:61544337ff5e 12
gunarthon 0:61544337ff5e 13 #endif