Release 1.01

Dependents:   mbed_escm2000

Committer:
foxbrianr
Date:
Tue Sep 17 13:48:22 2019 +0000
Revision:
5:9f4d4f8ffc00
Parent:
4:7226c43320b5
Beta 2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
foxbrianr 5:9f4d4f8ffc00 1 /**************************************************************************
foxbrianr 5:9f4d4f8ffc00 2 * @file EditAddressMenu.h
foxbrianr 5:9f4d4f8ffc00 3 * @brief Base class for implementing the Edit Address Menu display
foxbrianr 5:9f4d4f8ffc00 4 * @version: V1.0
foxbrianr 5:9f4d4f8ffc00 5 * @date: 9/17/2019
foxbrianr 5:9f4d4f8ffc00 6
foxbrianr 5:9f4d4f8ffc00 7 *
foxbrianr 5:9f4d4f8ffc00 8 * @note
foxbrianr 5:9f4d4f8ffc00 9 * Copyright (C) 2019 E3 Design. All rights reserved.
foxbrianr 5:9f4d4f8ffc00 10 *
foxbrianr 5:9f4d4f8ffc00 11 * @par
foxbrianr 5:9f4d4f8ffc00 12 * E3 Designers LLC is supplying this software for use with Cortex-M3 LPC1768
foxbrianr 5:9f4d4f8ffc00 13 * processor based microcontroller for the ESCM 2000 Monitor and Display.
foxbrianr 5:9f4d4f8ffc00 14 * *
foxbrianr 5:9f4d4f8ffc00 15 * @par
foxbrianr 5:9f4d4f8ffc00 16 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
foxbrianr 5:9f4d4f8ffc00 17 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
foxbrianr 5:9f4d4f8ffc00 18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
foxbrianr 5:9f4d4f8ffc00 19 * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
foxbrianr 5:9f4d4f8ffc00 20 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
foxbrianr 5:9f4d4f8ffc00 21 *
foxbrianr 5:9f4d4f8ffc00 22 ******************************************************************************/
foxbrianr 4:7226c43320b5 23 #ifndef EDITADDRESS_MENU_H
foxbrianr 4:7226c43320b5 24 #define EDITADDRESS_MENU_H
foxbrianr 4:7226c43320b5 25
foxbrianr 4:7226c43320b5 26 #include "mbed.h"
foxbrianr 4:7226c43320b5 27 #include "Menu.h"
foxbrianr 4:7226c43320b5 28 #include "LCD.h"
foxbrianr 4:7226c43320b5 29 #include "AddressMap.h"
foxbrianr 4:7226c43320b5 30
foxbrianr 4:7226c43320b5 31 class EditAddressMenu : public Menu
foxbrianr 4:7226c43320b5 32 {
foxbrianr 4:7226c43320b5 33 public :
foxbrianr 4:7226c43320b5 34 int row;
foxbrianr 4:7226c43320b5 35 int column;
foxbrianr 4:7226c43320b5 36 int top;
foxbrianr 4:7226c43320b5 37 int bottom;
foxbrianr 4:7226c43320b5 38
foxbrianr 4:7226c43320b5 39
foxbrianr 4:7226c43320b5 40 char tmp_description[MAX_ADDR_LENGTH];
foxbrianr 4:7226c43320b5 41
foxbrianr 4:7226c43320b5 42
foxbrianr 4:7226c43320b5 43 int active_selection;
foxbrianr 4:7226c43320b5 44 int active_address;
foxbrianr 4:7226c43320b5 45 int active_position;
foxbrianr 4:7226c43320b5 46
foxbrianr 4:7226c43320b5 47 EditAddressMenu(char* id);
foxbrianr 4:7226c43320b5 48
foxbrianr 4:7226c43320b5 49 void display(LCD * lcd);
foxbrianr 4:7226c43320b5 50
foxbrianr 4:7226c43320b5 51 virtual void pressMode();
foxbrianr 4:7226c43320b5 52 virtual void pressSet();
foxbrianr 4:7226c43320b5 53 virtual void pressDown();
foxbrianr 4:7226c43320b5 54 virtual void pressUp();
foxbrianr 4:7226c43320b5 55 virtual void init();
foxbrianr 4:7226c43320b5 56
foxbrianr 4:7226c43320b5 57 virtual char* getText() { return "Edit Addresses"; }
foxbrianr 4:7226c43320b5 58
foxbrianr 4:7226c43320b5 59 void nextValidChar (char * c, int direction);
foxbrianr 4:7226c43320b5 60 };
foxbrianr 4:7226c43320b5 61
foxbrianr 4:7226c43320b5 62
foxbrianr 4:7226c43320b5 63 #endif