Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
states.h@21:e51733fc1c36, 2018-07-02 (annotated)
- Committer:
- gwappa
- Date:
- Mon Jul 02 11:51:16 2018 +0000
- Revision:
- 21:e51733fc1c36
- Parent:
- 20:4c06d3041337
- Child:
- 28:797536a42b9f
change task structure; now all the paradigms use Cued state, and auditory/visual cues are configured upon Trial::reset()
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 | 11:897ecd5413e0 | 11 | /** |
gwappa | 11:897ecd5413e0 | 12 | * used except for the Pair mode. |
gwappa | 11:897ecd5413e0 | 13 | * lick is not allowed during this period. |
gwappa | 11:897ecd5413e0 | 14 | * if the animal licks, the state transits to Abort. |
gwappa | 11:897ecd5413e0 | 15 | */ |
gwappa | 7:6744ec9ccc25 | 16 | struct Prepare { |
gwappa | 7:6744ec9ccc25 | 17 | static void setup(); |
gwappa | 7:6744ec9ccc25 | 18 | static void teardown(); |
gwappa | 7:6744ec9ccc25 | 19 | }; |
gwappa | 7:6744ec9ccc25 | 20 | |
gwappa | 7:6744ec9ccc25 | 21 | struct Abort { |
gwappa | 7:6744ec9ccc25 | 22 | static void setup(); |
gwappa | 7:6744ec9ccc25 | 23 | static void teardown(); |
gwappa | 7:6744ec9ccc25 | 24 | }; |
gwappa | 7:6744ec9ccc25 | 25 | |
gwappa | 11:897ecd5413e0 | 26 | /** |
gwappa | 21:e51733fc1c36 | 27 | * used to present reward-related conditioning cue(s) (visual, auditory). |
gwappa | 21:e51733fc1c36 | 28 | * necessary whisk/lick/stimulus-related callbacks are also used. |
gwappa | 11:897ecd5413e0 | 29 | */ |
gwappa | 4:fcf597f82632 | 30 | struct Cued { |
gwappa | 4:fcf597f82632 | 31 | static void setup(); |
gwappa | 7:6744ec9ccc25 | 32 | static void gate(); |
gwappa | 4:fcf597f82632 | 33 | static void teardown(); |
gwappa | 4:fcf597f82632 | 34 | }; |
gwappa | 4:fcf597f82632 | 35 | |
gwappa | 21:e51733fc1c36 | 36 | /** |
gwappa | 21:e51733fc1c36 | 37 | * if the animal licked during Cued period, the automaton transits to this state. |
gwappa | 21:e51733fc1c36 | 38 | * if it is in the Pair mode, or if the conditioning cue is already there, |
gwappa | 21:e51733fc1c36 | 39 | * a reward delivery is also performed here. |
gwappa | 21:e51733fc1c36 | 40 | */ |
gwappa | 4:fcf597f82632 | 41 | struct WithResp { |
gwappa | 4:fcf597f82632 | 42 | static void setup(); |
gwappa | 4:fcf597f82632 | 43 | static void teardown(); |
gwappa | 4:fcf597f82632 | 44 | }; |
gwappa | 4:fcf597f82632 | 45 | |
gwappa | 4:fcf597f82632 | 46 | struct NoResp { |
gwappa | 4:fcf597f82632 | 47 | static void setup(); |
gwappa | 4:fcf597f82632 | 48 | static void teardown(); |
gwappa | 4:fcf597f82632 | 49 | }; |
gwappa | 4:fcf597f82632 | 50 | |
gwappa | 8:973dcd190672 | 51 | struct TestReward { |
gwappa | 8:973dcd190672 | 52 | static void setup(); |
gwappa | 8:973dcd190672 | 53 | static void teardown(); |
gwappa | 8:973dcd190672 | 54 | }; |
gwappa | 8:973dcd190672 | 55 | |
gwappa | 4:fcf597f82632 | 56 | #endif |