Library to use the Kaji-Lab's Electrical Simulator

Dependents:   Interference_Simple

Embed: (wiki syntax)

« Back to documentation index

KajiLabES Class Reference

KajiLabES Class Reference

KajiLabES nyaan The class which make the electrical stimulator device made by Ph.D Kajimoto out put sotimulation current and get impedance among electrodes. More...

#include <KajiLabES.h>

Public Member Functions

short DAAD (short DA)
 Execute DA&AD at the same time.
void init ()
 Initialize SPI setting.

Detailed Description

KajiLabES nyaan The class which make the electrical stimulator device made by Ph.D Kajimoto out put sotimulation current and get impedance among electrodes.

Definition at line 9 of file KajiLabES.h.


Member Function Documentation

short DAAD ( short  DA )

Execute DA&AD at the same time.

About DA & AD
  • DA output electrical current using AD5452(SPI)
  • AD input impedance using AD7276(SPI)

Definition at line 25 of file KajiLabES.cpp.

void init (  )

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
About SPI Mode
SPI has 4 modes
     *      |Mode       |Polarity   |Phase      |
     *      |:---------:|:---------:|:---------:|
     *      |0          |0          |0          |
     *      |1          |0          |1          |
     *      |2          |1          |0          |
     *      |3          |1          |1          |
     *      

Definition at line 41 of file KajiLabES.cpp.