Gunar Kroeger / Mbed OS AcusticLocator
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Definitions.h Source File

Definitions.h

00001 #ifndef DEFINITIONS_H
00002 #define DEFINITIONS_H
00003 
00004 enum { ADC_LENGTH = 4 };
00005 
00006 typedef struct Signal {
00007     float& operator[](unsigned i) { return channel[i]; }
00008     float channel[ADC_LENGTH];
00009 } Signal;
00010 
00011 typedef std::vector<Signal> SignalBuf;
00012 
00013 #endif