Library to use the Kaji-Lab's Electrical Simulator

Dependents:   Interference_Simple

Revision:
3:9110712a0942
Parent:
0:06a61ec386e8
Child:
4:46396ccf080e
--- a/KajiLabES.h	Fri Jun 01 09:36:58 2018 +0000
+++ b/KajiLabES.h	Thu Nov 08 09:42:29 2018 +0000
@@ -19,10 +19,29 @@
         PinName AD_cs   = p9);
     //~KajiLabES();
 
-    //DA&AD at the same time
-    //DA output by AD5452(SPI)
-    //AD input by AD7276(SPI)
+    /** Execute DA&AD at the same time
+     *  \par    About DA & AD
+     *  -   DA output electrical current using AD5452(SPI)
+     *  -   AD input impedance using AD7276(SPI)
+     */
     short DAAD(short DA);
-    void DAADinit();
+    
+    /// Initialize SPI setting
+    /**
+     *  DA & AD devices are controlled by SPI.
+     *  In this procedure, SPI are configurated as following
+     *  -   buffer bit: 16 bit
+     *  -   SPI Mode:   2
+     *  -   Frequency:  48000000 Hz
+     *  \par About SPI Mode
+     *  SPI has 4 modes
+     *      Mode   Polarity    Phase
+     *      0   0   0
+     *      1   0   1
+     *      2   1   0
+     *      3   1   1
+     *  .
+     */
+    void init();
 };
 #endif
\ No newline at end of file