Library to use the Kaji-Lab's Electrical Simulator

Dependents:   Interference_Simple

Committer:
aktk
Date:
Wed Feb 17 08:14:03 2016 +0000
Revision:
0:06a61ec386e8
Child:
3:9110712a0942
put together functions to use Electrical Stimulation Device.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aktk 0:06a61ec386e8 1 #ifndef KAJIMOTO_LAB_ELECTRIC_STIMULATION_H
aktk 0:06a61ec386e8 2 #define KAJIMOTO_LAB_ELECTRIC_STIMULATION_H
aktk 0:06a61ec386e8 3 #include "mbed.h"
aktk 0:06a61ec386e8 4 class KajiLabES
aktk 0:06a61ec386e8 5 {
aktk 0:06a61ec386e8 6 private:
aktk 0:06a61ec386e8 7 //DAAD
aktk 0:06a61ec386e8 8 SPI _spiDAAD;//(p5, p6, p7); // mosi(master output slave input, miso(not connected), clock signal
aktk 0:06a61ec386e8 9 DigitalOut _DA_sync;//(p8); //chip select for AD5452
aktk 0:06a61ec386e8 10 DigitalOut _AD_cs;//(p9); //chip select for AD7276
aktk 0:06a61ec386e8 11
aktk 0:06a61ec386e8 12 public:
aktk 0:06a61ec386e8 13 //KajiLabES();
aktk 0:06a61ec386e8 14 KajiLabES(
aktk 0:06a61ec386e8 15 PinName mosi = p5,
aktk 0:06a61ec386e8 16 PinName miso = p6,
aktk 0:06a61ec386e8 17 PinName clk = p7,
aktk 0:06a61ec386e8 18 PinName DA_sync = p8,
aktk 0:06a61ec386e8 19 PinName AD_cs = p9);
aktk 0:06a61ec386e8 20 //~KajiLabES();
aktk 0:06a61ec386e8 21
aktk 0:06a61ec386e8 22 //DA&AD at the same time
aktk 0:06a61ec386e8 23 //DA output by AD5452(SPI)
aktk 0:06a61ec386e8 24 //AD input by AD7276(SPI)
aktk 0:06a61ec386e8 25 short DAAD(short DA);
aktk 0:06a61ec386e8 26 void DAADinit();
aktk 0:06a61ec386e8 27 };
aktk 0:06a61ec386e8 28 #endif