Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
states.h@29:1fb060aab1f8, 2018-10-01 (annotated)
- Committer:
- gwappa
- Date:
- Mon Oct 01 14:54:37 2018 +0000
- Revision:
- 29:1fb060aab1f8
- Parent:
- 28:797536a42b9f
- Child:
- 30:5f975f572ffb
update task structure
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gwappa | 4:fcf597f82632 | 1 | #ifndef STATES_H_ |
gwappa | 4:fcf597f82632 | 2 | #define STATES_H_ |
gwappa | 4:fcf597f82632 | 3 | |
gwappa | 9:e136394bdb39 | 4 | #include "mbed.h" |
gwappa | 9:e136394bdb39 | 5 | |
gwappa | 4:fcf597f82632 | 6 | struct Delay { |
gwappa | 4:fcf597f82632 | 7 | static void setup(); |
gwappa | 4:fcf597f82632 | 8 | static void teardown(); |
gwappa | 4:fcf597f82632 | 9 | }; |
gwappa | 4:fcf597f82632 | 10 | |
gwappa | 29:1fb060aab1f8 | 11 | struct Paired { |
gwappa | 28:797536a42b9f | 12 | static void setup(); |
gwappa | 28:797536a42b9f | 13 | static void teardown(); |
gwappa | 28:797536a42b9f | 14 | }; |
gwappa | 28:797536a42b9f | 15 | |
gwappa | 29:1fb060aab1f8 | 16 | struct Monitor { |
gwappa | 28:797536a42b9f | 17 | static void setup(); |
gwappa | 28:797536a42b9f | 18 | static void teardown(); |
gwappa | 28:797536a42b9f | 19 | }; |
gwappa | 28:797536a42b9f | 20 | |
gwappa | 11:897ecd5413e0 | 21 | /** |
gwappa | 28:797536a42b9f | 22 | * used except for the Condition mode. |
gwappa | 11:897ecd5413e0 | 23 | * lick is not allowed during this period. |
gwappa | 11:897ecd5413e0 | 24 | * if the animal licks, the state transits to Abort. |
gwappa | 11:897ecd5413e0 | 25 | */ |
gwappa | 7:6744ec9ccc25 | 26 | struct Prepare { |
gwappa | 7:6744ec9ccc25 | 27 | static void setup(); |
gwappa | 7:6744ec9ccc25 | 28 | static void teardown(); |
gwappa | 7:6744ec9ccc25 | 29 | }; |
gwappa | 7:6744ec9ccc25 | 30 | |
gwappa | 7:6744ec9ccc25 | 31 | struct Abort { |
gwappa | 7:6744ec9ccc25 | 32 | static void setup(); |
gwappa | 7:6744ec9ccc25 | 33 | static void teardown(); |
gwappa | 7:6744ec9ccc25 | 34 | }; |
gwappa | 7:6744ec9ccc25 | 35 | |
gwappa | 11:897ecd5413e0 | 36 | /** |
gwappa | 21:e51733fc1c36 | 37 | * used to present reward-related conditioning cue(s) (visual, auditory). |
gwappa | 21:e51733fc1c36 | 38 | * necessary whisk/lick/stimulus-related callbacks are also used. |
gwappa | 11:897ecd5413e0 | 39 | */ |
gwappa | 4:fcf597f82632 | 40 | struct Cued { |
gwappa | 4:fcf597f82632 | 41 | static void setup(); |
gwappa | 7:6744ec9ccc25 | 42 | static void gate(); |
gwappa | 4:fcf597f82632 | 43 | static void teardown(); |
gwappa | 4:fcf597f82632 | 44 | }; |
gwappa | 4:fcf597f82632 | 45 | |
gwappa | 21:e51733fc1c36 | 46 | /** |
gwappa | 29:1fb060aab1f8 | 47 | * if the animal licked during Cued/Monitor period, the automaton transits to this state. |
gwappa | 29:1fb060aab1f8 | 48 | * unless it is in the Condition mode, reward is delivered here. |
gwappa | 21:e51733fc1c36 | 49 | */ |
gwappa | 4:fcf597f82632 | 50 | struct WithResp { |
gwappa | 4:fcf597f82632 | 51 | static void setup(); |
gwappa | 4:fcf597f82632 | 52 | static void teardown(); |
gwappa | 4:fcf597f82632 | 53 | }; |
gwappa | 4:fcf597f82632 | 54 | |
gwappa | 4:fcf597f82632 | 55 | struct NoResp { |
gwappa | 4:fcf597f82632 | 56 | static void setup(); |
gwappa | 4:fcf597f82632 | 57 | static void teardown(); |
gwappa | 4:fcf597f82632 | 58 | }; |
gwappa | 4:fcf597f82632 | 59 | |
gwappa | 8:973dcd190672 | 60 | struct TestReward { |
gwappa | 8:973dcd190672 | 61 | static void setup(); |
gwappa | 8:973dcd190672 | 62 | static void teardown(); |
gwappa | 8:973dcd190672 | 63 | }; |
gwappa | 8:973dcd190672 | 64 | |
gwappa | 4:fcf597f82632 | 65 | #endif |