Interference current stimulation program with kaji-lab ES device.
Dependencies: mbed SerialInputReactionHandler AMPulseTrain SwArr16MOSFET StrCommandHandler KajiLabES
subroutines.h@2:5cb68cc8ecaa, 2019-11-27 (annotated)
- Committer:
- aktk
- Date:
- Wed Nov 27 23:41:55 2019 +0000
- Revision:
- 2:5cb68cc8ecaa
nov 27th 2019 digital sin works
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aktk | 2:5cb68cc8ecaa | 1 | #ifndef SUBROUTINES_H |
aktk | 2:5cb68cc8ecaa | 2 | #define SUBROUTINES_H |
aktk | 2:5cb68cc8ecaa | 3 | |
aktk | 2:5cb68cc8ecaa | 4 | #include "mbed.h" |
aktk | 2:5cb68cc8ecaa | 5 | |
aktk | 2:5cb68cc8ecaa | 6 | extern DigitalOut myled1; |
aktk | 2:5cb68cc8ecaa | 7 | extern DigitalOut myled2; |
aktk | 2:5cb68cc8ecaa | 8 | extern DigitalOut myled3; |
aktk | 2:5cb68cc8ecaa | 9 | extern DigitalOut myled4; |
aktk | 2:5cb68cc8ecaa | 10 | |
aktk | 2:5cb68cc8ecaa | 11 | enum ProcessState {WAIT_A_CERTAIN_KEY, MAIN_ROUTINE, TERMINATED}; |
aktk | 2:5cb68cc8ecaa | 12 | extern ProcessState pstate; |
aktk | 2:5cb68cc8ecaa | 13 | |
aktk | 2:5cb68cc8ecaa | 14 | // prototype |
aktk | 2:5cb68cc8ecaa | 15 | |
aktk | 2:5cb68cc8ecaa | 16 | /// Called in main |
aktk | 2:5cb68cc8ecaa | 17 | void init(void); |
aktk | 2:5cb68cc8ecaa | 18 | |
aktk | 2:5cb68cc8ecaa | 19 | /// Called when it attached to ticker |
aktk | 2:5cb68cc8ecaa | 20 | void loop(void); |
aktk | 2:5cb68cc8ecaa | 21 | |
aktk | 2:5cb68cc8ecaa | 22 | |
aktk | 2:5cb68cc8ecaa | 23 | void * printKBManual(void); |
aktk | 2:5cb68cc8ecaa | 24 | void * printStatus(void); |
aktk | 2:5cb68cc8ecaa | 25 | void * printDSinSamples(void); |
aktk | 2:5cb68cc8ecaa | 26 | |
aktk | 2:5cb68cc8ecaa | 27 | void * increaseCurrent(void); |
aktk | 2:5cb68cc8ecaa | 28 | void * decreaseCurrent(void); |
aktk | 2:5cb68cc8ecaa | 29 | void * increaseFrequency(void); |
aktk | 2:5cb68cc8ecaa | 30 | void * decreaseFrequency(void); |
aktk | 2:5cb68cc8ecaa | 31 | |
aktk | 2:5cb68cc8ecaa | 32 | void * beginParamsSetting(void); |
aktk | 2:5cb68cc8ecaa | 33 | void * SetAmplitude(char const * const); |
aktk | 2:5cb68cc8ecaa | 34 | void * SetFrequency(char const * const); |
aktk | 2:5cb68cc8ecaa | 35 | void * endParamsSetting(void); |
aktk | 2:5cb68cc8ecaa | 36 | |
aktk | 2:5cb68cc8ecaa | 37 | void * switchState(); |
aktk | 2:5cb68cc8ecaa | 38 | void * startLoop(void); |
aktk | 2:5cb68cc8ecaa | 39 | void * pauseLoop(void); |
aktk | 2:5cb68cc8ecaa | 40 | void * terminateLoop(void); |
aktk | 2:5cb68cc8ecaa | 41 | |
aktk | 2:5cb68cc8ecaa | 42 | void calleddefault(char const * const, void *); |
aktk | 2:5cb68cc8ecaa | 43 | #endif |