Jared Baxter / Mbed 2 deprecated Impedance_Fast_Circuitry

Dependencies:   mbed-dsp mbed

Fork of DSP_200kHz by Mazzeo Research Group

Revision:
40:bd6d8c35e822
Parent:
39:82dc3daecf32
Child:
41:3e0623d81b9a
--- a/dma.h	Thu Jan 29 16:18:54 2015 +0000
+++ b/dma.h	Fri Jan 30 06:16:39 2015 +0000
@@ -1,17 +1,30 @@
-/*
- * dma.h
- *
- *  Created on: Nov 25, 2014
- *      Author: Manuel Alejandro
- */
-
 #ifndef DMA_H_
 #define DMA_H_
 
 #include "mbed.h"
 
 extern int rotary_count;
+extern uint16_t sample_array1[];
+extern uint16_t sample_array2[];
+extern uint16_t angle_array[];
+void dma_init(int adc_reads);
+void reset_dma(); 
 
-void dma_init(uint16_t* array0, uint16_t* array1, uint16_t* array2, int adc_reads, Serial &pc);
+
+/*
+class DMA {
+public:
+    DMA(uint16_t* sample_array1, uint16_t* sample_array2, uint16_t* sample_array3);
+    void dma_init(int adc_reads);
+    void reset_dma();    
+
+private:  
+    uint16_t* _array1;
+    uint16_t* _array2;
+    uint16_t* _array3;
+};
+*/
+
+
 
 #endif /* DMA_H_ */