mbed menu system

Committer:
mbedDevLondon
Date:
Thu Feb 28 03:33:50 2013 +0000
Revision:
2:5c4911aba273
Parent:
0:a5ece7312edc
formatting in menuIDs.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedDevLondon 0:a5ece7312edc 1
mbedDevLondon 0:a5ece7312edc 2
mbedDevLondon 0:a5ece7312edc 3 #include "menuIDs.h"
mbedDevLondon 0:a5ece7312edc 4 #include "MainMenu.h"
mbedDevLondon 0:a5ece7312edc 5
mbedDevLondon 0:a5ece7312edc 6 extern MainMenu pageMenu[12];
mbedDevLondon 0:a5ece7312edc 7
mbedDevLondon 0:a5ece7312edc 8 void initializeMenuSystem()
mbedDevLondon 0:a5ece7312edc 9 {
mbedDevLondon 0:a5ece7312edc 10 pageMenu[HOME].setMenuItem(0, RECORDSET, "Record Settings", 5, 2);
mbedDevLondon 0:a5ece7312edc 11 pageMenu[HOME].setMenuItem(1, PLAYBACK, "Playback", 5, 3);
mbedDevLondon 0:a5ece7312edc 12 pageMenu[HOME].setMenuItem(2, SCREENSET, "Screen Settings", 5, 4);
mbedDevLondon 0:a5ece7312edc 13 pageMenu[HOME].setMaxItems(3);
mbedDevLondon 0:a5ece7312edc 14
mbedDevLondon 0:a5ece7312edc 15 pageMenu[RECORDSET].setMenuItem(0, RECSETOUT, "Output", 5, 2);
mbedDevLondon 0:a5ece7312edc 16 pageMenu[RECORDSET].setMenuItem(1, RECSETIN, "Input", 5, 3);
mbedDevLondon 0:a5ece7312edc 17 pageMenu[RECORDSET].setMenuItem(2, RECSETFILTERS, "Filters", 5, 4);
mbedDevLondon 0:a5ece7312edc 18 pageMenu[RECORDSET].setMenuItem(3, RECSETSAMPFRQ, "Sampling Freq", 5, 5);
mbedDevLondon 0:a5ece7312edc 19 pageMenu[RECORDSET].setMenuItem(4, RECSETAGC, "AGC", 5, 6);
mbedDevLondon 0:a5ece7312edc 20 pageMenu[RECORDSET].setMaxItems(5);
mbedDevLondon 0:a5ece7312edc 21
mbedDevLondon 0:a5ece7312edc 22 pageMenu[OUTPUT].setMenuItem(0, LINE, "Line", 5, 2);
mbedDevLondon 0:a5ece7312edc 23 pageMenu[OUTPUT].setMenuItem(1, HEADPHONES, "Headphones", 5, 3);
mbedDevLondon 0:a5ece7312edc 24 pageMenu[OUTPUT].setMenuItem(2, SPEAKERS, "Speakers", 5, 4);
mbedDevLondon 0:a5ece7312edc 25 pageMenu[OUTPUT].setMaxItems(3);
mbedDevLondon 0:a5ece7312edc 26
mbedDevLondon 0:a5ece7312edc 27 pageMenu[INPUT].setMenuItem(0, INMIC, "Mic", 5, 2);
mbedDevLondon 0:a5ece7312edc 28 pageMenu[INPUT].setMenuItem(1, INLINE, "Line", 5, 3);
mbedDevLondon 0:a5ece7312edc 29 pageMenu[INPUT].setMaxItems(2);
mbedDevLondon 0:a5ece7312edc 30
mbedDevLondon 0:a5ece7312edc 31 pageMenu[FILTER].setMenuItem(0, FILTER1, "Low Pass", 5, 2);
mbedDevLondon 0:a5ece7312edc 32 pageMenu[FILTER].setMenuItem(1, FILTER2, "High Pass", 5, 3);
mbedDevLondon 0:a5ece7312edc 33 pageMenu[FILTER].setMenuItem(2, FILTER3, "Band Pass", 5, 4);
mbedDevLondon 0:a5ece7312edc 34 pageMenu[FILTER].setMenuItem(3, FILTERNONE, "None", 5, 5);
mbedDevLondon 0:a5ece7312edc 35 pageMenu[FILTER].setMaxItems(4);
mbedDevLondon 0:a5ece7312edc 36
mbedDevLondon 0:a5ece7312edc 37 }