fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

states.h

Committer:
gwappa
Date:
2018-07-02
Revision:
21:e51733fc1c36
Parent:
20:4c06d3041337
Child:
28:797536a42b9f

File content as of revision 21:e51733fc1c36:

#ifndef STATES_H_
#define STATES_H_

#include "mbed.h"

struct Delay {
    static void setup();
    static void teardown();
};

/**
*   used except for the Pair 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 period, the automaton transits to this state.
*   if it is in the Pair mode, or if the conditioning cue is already there,
*   a reward delivery is also performed 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