Jared Baxter / Mbed 2 deprecated Impedance_Fast_Circuitry_print_V_I

Dependencies:   mbed-dsp mbed

Fork of Impedance_Fast_Circuitry by Jared Baxter

Revision:
39:82dc3daecf32
Child:
40:bd6d8c35e822
diff -r ec3b16c130d7 -r 82dc3daecf32 adc.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/adc.h	Thu Jan 29 16:18:54 2015 +0000
@@ -0,0 +1,29 @@
+/*
+ * dma.h
+ *
+ *  Created on: Nov 25, 2014
+ *      Author: Manuel Alejandro
+ */
+
+#ifndef ADC_H_
+#define ADC_H_
+
+#include "mbed.h"
+#include <stdio.h>
+
+// Analog sampling
+#include "PeripheralNames.h"
+#include "PeripheralPins.h"
+#include "fsl_adc_hal.h"
+#include "fsl_clock_manager.h"
+#include "fsl_dspi_hal.h"
+#include "AngleEncoder.h"
+
+#define MAX_FADC 6000000
+#define SAMPLING_RATE       10 // In microseconds, so 10 us will be a sampling rate of 100 kHz
+#define TOTAL_SAMPLES       3 // originally 30000 for 0.3 ms of sampling.
+
+
+void analog_initialization(PinName pin, Serial &pc);
+
+#endif /* ADC_H_ */