The MBED firmware used on the Chipin sorter, developed over 12 weeks for a 3rd year university systems project. Chipin is a token sorter, it sorts tokens by colours and dispenses them to order through an online booking system and card reader. This program interfaces with an FPGA, PC and LCD screen to control the sorter. The sorter has an operation mode where it can process orders when a card is entered into the machine. There is also a maintenance mode where the device responds to maintenance instructions such as 'dispense all'. More information at http://www.ionsystems.uk/

Dependencies:   MCP23017 TCS3472_I2C WattBob_TextLCD mbed-rtos mbed

stateMachine.h

Committer:
IonSystems
Date:
2014-12-05
Revision:
28:bdf2bf56f97b
Parent:
27:47a7bc902587

File content as of revision 28:bdf2bf56f97b:

/*  enum StateMachine{
 *  An enumerated type representing the maintenance mode slider operations.
 */
enum StateMachine{
    
    //Maintenance mode states
    RB_LEFT,
    RB_CENTRE,
    RB_RIGHT,
    GO_UP,
    GO_CENTRE,
    GO_DOWN,
    BR_LEFT,
    BR_RIGHT,
    R_PUSH,
    R_HOME,
    GB_LEFT,
    GB_CENTRE,
    GB_RIGHT,
    maintenanceEND
    };