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

Language.h

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

File content as of revision 28:bdf2bf56f97b:

/*  An enumerated type representing the three possible languages.
 */
enum Language { ENGLISH,
                FRENCH,
                GERMAN};
                
/*  Language nextLanguage(Language oldLanguage)
 *  Return the next language in the above sequence.
 */
Language nextLanguage(Language oldLanguage)
{
    switch(oldLanguage) {
        case ENGLISH:
            return FRENCH;
        case FRENCH:
            return GERMAN;
        case GERMAN:
            return ENGLISH;
        default:
            return oldLanguage;
    }
}