Bert Gereels / Mbed 2 deprecated ProjectOne

Dependencies:   C12832 LM75B mbed EthernetInterface mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers selection.h Source File

selection.h

00001 #include <string>
00002 #include "mbed.h"
00003 
00004 #pragma once
00005 
00006 namespace ProjectOne{
00007     
00008     class Selection{
00009         public:
00010             /*
00011             * Constructor for Selection class.
00012             *
00013             @param The pins connected to the joystick on the application board.
00014             @return Nothing.
00015             */
00016             Selection(PinName Center=p14, PinName Up=p15, PinName Down=p12, PinName Left=p13, PinName Right=p16);
00017             
00018             /*
00019             * Method that prompts user to select the opperating mode.
00020             * Two modes available, slave and master.
00021             *
00022             @param Nothing.
00023             @return A string containing the selected mode.
00024             */
00025             string determineMode(void);
00026             
00027             /*
00028             * Method that prompts user to select the opperating id.
00029             * The id can have a value between 100 and 110.
00030             * Id is then passed to slave or master class according to operating mode.
00031             *
00032             @param Nothing.
00033             @return An int containing the selected id.
00034             */
00035             int determineId(void);
00036         
00037         private:
00038             BusIn joy;
00039     };
00040 };