fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Committer:
gwappa
Date:
Mon Jul 02 09:04:45 2018 +0000
Revision:
20:4c06d3041337
Parent:
11:897ecd5413e0
Child:
21:e51733fc1c36
try extending Pulse to allow tickering output

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 20:4c06d3041337 39 static void gate();
gwappa 9:e136394bdb39 40 static void teardown();
gwappa 9:e136394bdb39 41 };
gwappa 9:e136394bdb39 42
gwappa 11:897ecd5413e0 43 /**
gwappa 11:897ecd5413e0 44 * used except for the Pair mode to present reward-related conditioning cue(s).
gwappa 11:897ecd5413e0 45 */
gwappa 4:fcf597f82632 46 struct Cued {
gwappa 4:fcf597f82632 47 static void setup();
gwappa 7:6744ec9ccc25 48 static void gate();
gwappa 4:fcf597f82632 49 static void teardown();
gwappa 4:fcf597f82632 50 };
gwappa 4:fcf597f82632 51
gwappa 4:fcf597f82632 52 struct WithResp {
gwappa 4:fcf597f82632 53 static void setup();
gwappa 4:fcf597f82632 54 static void teardown();
gwappa 4:fcf597f82632 55 };
gwappa 4:fcf597f82632 56
gwappa 4:fcf597f82632 57 struct NoResp {
gwappa 4:fcf597f82632 58 static void setup();
gwappa 4:fcf597f82632 59 static void teardown();
gwappa 4:fcf597f82632 60 };
gwappa 4:fcf597f82632 61
gwappa 8:973dcd190672 62 struct TestReward {
gwappa 8:973dcd190672 63 static void setup();
gwappa 8:973dcd190672 64 static void teardown();
gwappa 8:973dcd190672 65 };
gwappa 8:973dcd190672 66
gwappa 4:fcf597f82632 67 #endif