Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
states.h
- Committer:
- gwappa
- Date:
- 2018-10-01
- Revision:
- 29:1fb060aab1f8
- Parent:
- 28:797536a42b9f
- Child:
- 30:5f975f572ffb
File content as of revision 29:1fb060aab1f8:
#ifndef STATES_H_ #define STATES_H_ #include "mbed.h" struct Delay { static void setup(); static void teardown(); }; struct Paired { static void setup(); static void teardown(); }; struct Monitor { static void setup(); static void teardown(); }; /** * used except for the Condition mode. * lick is not allowed during this period. * if the animal licks, the state transits to Abort. */ struct Prepare { static void setup(); static void teardown(); }; struct Abort { static void setup(); static void teardown(); }; /** * used to present reward-related conditioning cue(s) (visual, auditory). * necessary whisk/lick/stimulus-related callbacks are also used. */ struct Cued { static void setup(); static void gate(); static void teardown(); }; /** * if the animal licked during Cued/Monitor period, the automaton transits to this state. * unless it is in the Condition mode, reward is delivered here. */ struct WithResp { static void setup(); static void teardown(); }; struct NoResp { static void setup(); static void teardown(); }; struct TestReward { static void setup(); static void teardown(); }; #endif