Library to use the Kaji-Lab's Electrical Simulator

Dependents:   Interference_Simple

Revision:
0:06a61ec386e8
Child:
3:9110712a0942
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/KajiLabES.h	Wed Feb 17 08:14:03 2016 +0000
@@ -0,0 +1,28 @@
+#ifndef KAJIMOTO_LAB_ELECTRIC_STIMULATION_H
+#define KAJIMOTO_LAB_ELECTRIC_STIMULATION_H
+#include "mbed.h"
+class KajiLabES
+{
+private:
+    //DAAD
+    SPI         _spiDAAD;//(p5, p6, p7);   // mosi(master output slave input, miso(not connected), clock signal
+    DigitalOut  _DA_sync;//(p8);           //chip select for AD5452
+    DigitalOut  _AD_cs;//(p9);             //chip select for AD7276
+
+public:
+    //KajiLabES();
+    KajiLabES(
+        PinName mosi = p5,
+        PinName miso = p6,
+        PinName clk  = p7,
+        PinName DA_sync = p8,
+        PinName AD_cs   = p9);
+    //~KajiLabES();
+
+    //DA&AD at the same time
+    //DA output by AD5452(SPI)
+    //AD input by AD7276(SPI)
+    short DAAD(short DA);
+    void DAADinit();
+};
+#endif
\ No newline at end of file