fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Committer:
gwappa
Date:
Thu Jun 21 17:57:22 2018 +0000
Revision:
11:897ecd5413e0
Parent:
9:e136394bdb39
Child:
20:4c06d3041337
add auditory cue tickering

Who changed what in which revision?

UserRevisionLine numberNew 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 11:897ecd5413e0 6 /**
gwappa 11:897ecd5413e0 7 * internally gates the machine to accept licking.
gwappa 11:897ecd5413e0 8 * used in Report/Associate modes.
gwappa 11:897ecd5413e0 9 */
gwappa 11:897ecd5413e0 10 void gateReward();
gwappa 9:e136394bdb39 11
gwappa 4:fcf597f82632 12 struct Delay {
gwappa 4:fcf597f82632 13 static void setup();
gwappa 4:fcf597f82632 14 static void teardown();
gwappa 4:fcf597f82632 15 };
gwappa 4:fcf597f82632 16
gwappa 11:897ecd5413e0 17 /**
gwappa 11:897ecd5413e0 18 * used except for the Pair mode.
gwappa 11:897ecd5413e0 19 * lick is not allowed during this period.
gwappa 11:897ecd5413e0 20 * if the animal licks, the state transits to Abort.
gwappa 11:897ecd5413e0 21 */
gwappa 7:6744ec9ccc25 22 struct Prepare {
gwappa 7:6744ec9ccc25 23 static void setup();
gwappa 7:6744ec9ccc25 24 static void teardown();
gwappa 7:6744ec9ccc25 25 };
gwappa 7:6744ec9ccc25 26
gwappa 7:6744ec9ccc25 27 struct Abort {
gwappa 7:6744ec9ccc25 28 static void setup();
gwappa 7:6744ec9ccc25 29 static void teardown();
gwappa 7:6744ec9ccc25 30 };
gwappa 7:6744ec9ccc25 31
gwappa 11:897ecd5413e0 32 /**
gwappa 11:897ecd5413e0 33 * used for the Pair mode during the visual cue presentation.
gwappa 11:897ecd5413e0 34 * jumps to either WithResp or NoResp, depending on whether or not
gwappa 11:897ecd5413e0 35 * the animal licked during this period.
gwappa 11:897ecd5413e0 36 */
gwappa 9:e136394bdb39 37 struct Paired {
gwappa 9:e136394bdb39 38 static void setup();
gwappa 9:e136394bdb39 39 static void teardown();
gwappa 9:e136394bdb39 40 };
gwappa 9:e136394bdb39 41
gwappa 11:897ecd5413e0 42 /**
gwappa 11:897ecd5413e0 43 * used except for the Pair mode to present reward-related conditioning cue(s).
gwappa 11:897ecd5413e0 44 */
gwappa 4:fcf597f82632 45 struct Cued {
gwappa 4:fcf597f82632 46 static void setup();
gwappa 7:6744ec9ccc25 47 static void gate();
gwappa 4:fcf597f82632 48 static void teardown();
gwappa 4:fcf597f82632 49 };
gwappa 4:fcf597f82632 50
gwappa 4:fcf597f82632 51 struct WithResp {
gwappa 4:fcf597f82632 52 static void setup();
gwappa 4:fcf597f82632 53 static void teardown();
gwappa 4:fcf597f82632 54 };
gwappa 4:fcf597f82632 55
gwappa 4:fcf597f82632 56 struct NoResp {
gwappa 4:fcf597f82632 57 static void setup();
gwappa 4:fcf597f82632 58 static void teardown();
gwappa 4:fcf597f82632 59 };
gwappa 4:fcf597f82632 60
gwappa 8:973dcd190672 61 struct TestReward {
gwappa 8:973dcd190672 62 static void setup();
gwappa 8:973dcd190672 63 static void teardown();
gwappa 8:973dcd190672 64 };
gwappa 8:973dcd190672 65
gwappa 4:fcf597f82632 66 #endif