Jared Baxter / Mbed 2 deprecated Impedance_Fast_Circuitry

Dependencies:   mbed-dsp mbed

Fork of DSP_200kHz by Mazzeo Research Group

Committer:
timmey9
Date:
Fri Jan 30 06:59:19 2015 +0000
Revision:
41:3e0623d81b9a
Parent:
40:bd6d8c35e822
Child:
45:d591d138cdeb
Added DMA class.  Made changes to ADC.  This code still needs to be tested.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
timmey9 34:44cc9b76a507 1 #ifndef DMA_H_
timmey9 34:44cc9b76a507 2 #define DMA_H_
timmey9 34:44cc9b76a507 3
timmey9 39:82dc3daecf32 4 #include "mbed.h"
timmey9 34:44cc9b76a507 5
timmey9 41:3e0623d81b9a 6 /*
timmey9 36:07d8a3143967 7 extern int rotary_count;
timmey9 40:bd6d8c35e822 8 extern uint16_t sample_array1[];
timmey9 40:bd6d8c35e822 9 extern uint16_t sample_array2[];
timmey9 40:bd6d8c35e822 10 extern uint16_t angle_array[];
timmey9 41:3e0623d81b9a 11 */
timmey9 36:07d8a3143967 12
timmey9 40:bd6d8c35e822 13 class DMA {
timmey9 40:bd6d8c35e822 14 public:
timmey9 41:3e0623d81b9a 15 DMA(uint16_t* sample_array1, uint16_t* sample_array2, uint16_t* sample_array3,int len, int* relative_angle);
timmey9 41:3e0623d81b9a 16 void reset();
timmey9 40:bd6d8c35e822 17
timmey9 40:bd6d8c35e822 18 private:
timmey9 41:3e0623d81b9a 19 void init();
timmey9 41:3e0623d81b9a 20
timmey9 40:bd6d8c35e822 21 uint16_t* _array1;
timmey9 40:bd6d8c35e822 22 uint16_t* _array2;
timmey9 40:bd6d8c35e822 23 uint16_t* _array3;
timmey9 41:3e0623d81b9a 24 int _len;
timmey9 41:3e0623d81b9a 25 int* _angle;
timmey9 40:bd6d8c35e822 26 };
timmey9 34:44cc9b76a507 27
timmey9 34:44cc9b76a507 28 #endif /* DMA_H_ */