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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Language.h Source File

Language.h

00001 /*  An enumerated type representing the three possible languages.
00002  */
00003 enum Language { ENGLISH,
00004                 FRENCH,
00005                 GERMAN};
00006                 
00007 /*  Language nextLanguage(Language oldLanguage)
00008  *  Return the next language in the above sequence.
00009  */
00010 Language nextLanguage(Language oldLanguage)
00011 {
00012     switch(oldLanguage) {
00013         case ENGLISH:
00014             return FRENCH;
00015         case FRENCH:
00016             return GERMAN;
00017         case GERMAN:
00018             return ENGLISH;
00019         default:
00020             return oldLanguage;
00021     }
00022 }