| 
Data Structures | 
| struct | AverageValues | 
|  | Takes the average over 10 reading from each sensor.  More... 
 | 
| 
Namespaces | 
| namespace | screen | 
|  | Object to Class for Nokia N5110 Library.  
 | 
| namespace | srf02 | 
|  | Object to Class for SRF02 Distance Sensor.  
 | 
| namespace | tmp102 | 
|  | Object to Class for TMP102 Temperature Sensor.  
 | 
| namespace | pc | 
|  | Object to Class for Serial Library.  
 | 
| namespace | systemTicker | 
|  | Object for a Ticker which keeps the whole system in time.  
 | 
| namespace | controller | 
|  | Potentiometer connected to AnalogIn Pin PTB10 (Used to Select Menu Items).  
 | 
| namespace | backward | 
|  | Push Button connected to InterruptIn Pin PTB19 (Used to Return to Main Menu).  
 | 
| namespace | forward | 
|  | Push Button connected to InterruptIn Pin PTB18 (Various Uses - Menu Selection & Toggling Options...).  
 | 
| namespace | piezo | 
|  | Piezo Buzzer connected to PwmOut Pin PTA2 (Used w/ Distance Sensor for Audible Warning).  
 | 
| namespace | red_led | 
|  | Red LED connected to DigitalOut Pin PTC9 (Used w/ Distance and Temperature Sensor for Visual Warning).  
 | 
| namespace | yellow_led | 
|  | Yellow LED connected to DigitalOut Pin PTC0 (Used w/ Distance and Temperature Sensor for Visual Warning).  
 | 
| namespace | green_led | 
|  | Green LED connected to DigitalOut Pin PTC7 (Used w/ Distance and Temperature Sensor for Visual Warning).  
 | 
| namespace | redPWM | 
|  | Red LED connected to DigitalOut Pin PTC9 (BUT used with 'SoftPWM' so it can flash periodically).  
 | 
| namespace | yellowPWM | 
|  | Yelow LED connected to DigitalOut Pin PTC0 (BUT used with 'SoftPWM' so it can flash periodically).  
 | 
| namespace | greenPWM | 
|  | Green LED connected to DigitalOut Pin PTC7 (BUT used with 'SoftPWM' so it can flash periodically).  
 | 
| namespace | r_led | 
|  | Object for the K64F On-Board Red LED - Never used but necessary to turn it off.  
 | 
| namespace | g_led | 
|  | Object for the K64F On-Board Green LED - Never used but necessary to turn it off.  
 | 
| namespace | b_led | 
|  | Object for the K64F On-Board Blue LED - Never used but necessary to turn it off.  
 | 
| 
Functions | 
| void | system_isr () | 
|  | ISR Function for the 'systemTicker' Flag (ISR = Interrupt Service Routine). 
 | 
| void | forward_isr () | 
|  | ISR Function for the 'forward' Button InterruptIn (ISR = Interrupt Service Routine). 
 | 
| void | backward_isr () | 
|  | ISR Function for the 'backward' Button InterruptIn (ISR = Interrupt Service Routine). 
 | 
| void | clearAll () | 
|  | Function clears the buffer - Any text or set pixels on the screen. 
 | 
| void | init_K64F () | 
|  | Initialises the Nokia Screen by setting various parameters (i.e Button Pull-Ups/Downs and RGB LEDs). 
 | 
| void | init_buzzer () | 
|  | Initialises the Piezo Buzzer by setting various parameters (i.e Initial Period and Duty Cycle). 
 | 
| void | init_program () | 
|  | Initialises all other aspects surrounding the programme. 
 | 
| void | welcomeScreen () | 
|  | Contains strings which display an introductory message on the screen before the programme begins. 
 | 
| void | mainMenu () | 
|  | Function for displaying text and navigating around the Main Menu (Sensors/Options). 
 | 
| void | sensorMenu () | 
|  | Function for displaying text and navigating around the Sensor Menu (Distance/Temperature). 
 | 
| void | optionsMenu () | 
|  | Function for displaying text and navigating around the Options Menu (LEDs/Sound/Colour). 
 | 
| void | distanceDisplay () | 
|  | Function for displaying the output from the distance sensor numerically and graphically. 
 | 
| void | temperatureDisplay () | 
|  | Function for displaying the output from the temperature sensor numerically and graphically. 
 | 
| void | returnToMenu () | 
|  | Returns the programme back to the Main Menu from any screen when the 'backward' Button is pressed. 
 | 
| void | printCursorPositionMain (int cursor) | 
|  | Prints the Position of the Cursor - Used in the Main and Sensor Menus Only. 
 | 
| void | printCursorPositionOptions (int cursor, int stateOfLEDTrigger, int stateOfSoundTrigger) | 
|  | Prints the Position of the Cursor - Used in the OptionsOnly. 
 | 
| int | getCursorPosition () | 
|  | Reads value of Potentiometer ('controller') and assigns it to a Bank (0-5) through Multiplication. 
 | 
| void | LEDs_Flashing () | 
|  | Uses Software PWM to cause the Red/Yellow/Green LEDs to flash at a specified period. 
 | 
| void | cancel_LEDs_Flashing () | 
|  | Uses Software PWM to cause the Red/Yellow/Green LEDs to stop flashing. 
 | 
| void | LEDs_Distance (int d) | 
|  | Function for turning ON/OFF LEDs depending on the distance from the SRF02 Sensor. 
 | 
| void | LEDs_Temperature (int t) | 
|  | Function for turning ON/OFF LEDs depending on the temperature from the TMP102 Sensor. 
 | 
| void | allLEDOn () | 
|  | Turns all LEDs ON. 
 | 
| void | allLEDOff () | 
|  | Turns all LEDs OFF. 
 | 
| void | buzzerOn () | 
|  | Turns ON the Piezo and its outputs a constant noise. 
 | 
| void | buzzerFar () | 
|  | Turns ON the Piezo and uses a period that simulates being 'far away' - Less frequent bleeps. 
 | 
| void | buzzerNormal () | 
|  | Turns ON the Piezo and uses a period that simulates being a 'safe, normal' distance - Moderately frequent bleeps. 
 | 
| void | buzzerClose () | 
|  | Turns ON the Piezo and uses a period that simulates being 'close' to an object - Highly freqeuent bleeps. 
 | 
| bool | toggleLEDs () | 
|  | After the 'forward' Button is pressed - Checks the status of a 'Trigger' (triggerLEDs). 
 | 
| bool | toggleSound () | 
|  | After the 'forward' Button is pressed - Checks the status of a 'Trigger' (triggerSound). 
 | 
| void | toggleColour () | 
|  | After the 'forward' Button is pressed - Checks the status of a 'Trigger' (triggerColour). 
 | 
| 
Variables | 
| int | screenNumber = 0 | 
|  | Each Screen Number denotes a different navigation menu. 
 | 
| int | y_axis_rect_main | 
|  | Converts value of cursor into a pixel number (0-48) - Main Menu or Sensor Menu Only. 
 | 
| int | y_axis_rect_options | 
|  | Converts value of cursor into a pixel number (0-48) - Options Menu Only. 
 | 
| volatile int | g_system_flag = 0 | 
|  | Sets the Flag for 'systemTicker' initially to zero. 
 | 
| volatile int | g_forward_flag = 0 | 
|  | Sets the Flag for 'forward' Button Interrupt initially to zero. 
 | 
| volatile int | g_backward_flag = 0 | 
|  | Sets the Flag for 'backward' Button Interrupt initially to zero. 
 | 
| bool | stateOfLED = 0 | 
|  | Sets the status of the variable from the 'ToggleLED()' function. 
 | 
| bool | stateOfSound = 0 | 
|  | Sets the status of the variable from the 'ToggleSound()' function. 
 | 
| volatile bool | triggerLEDs = 0 | 
|  | Trigger is used for enable/disable LED option. 
 | 
| volatile bool | triggerSound = 0 | 
|  | Trigger is used for enable/disable Sound option. 
 | 
| volatile bool | triggerColour = 0 | 
|  | Trigger is used for enable/disable Colour option. 
 |