Treehouse Mbed Team / Mbed 2 deprecated APS_1U5x

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers menu.h Source File

menu.h

00001 //-------------------------------------------------------------------------------
00002 // 
00003 //  Treehouse Inc.
00004 //  Colorado Springs, Colorado
00005 // 
00006 //  Copyright (c) 2016 by Treehouse Designs Inc. 
00007 // 
00008 //  This code is the property of Treehouse, Inc. (Treehouse) and may not be redistributed
00009 //  in any form without prior written permission from the copyright holder, Treehouse.
00010 //
00011 //  The above copyright notice and this permission notice shall be included in
00012 //  all copies or substantial portions of the Software.
00013 //   
00014 //-------------------------------------------------------------------------------
00015 // 
00016 //  REVISION HISTORY:
00017 //  
00018 //   $Author: $
00019 //   $Rev: $
00020 //   $Date: $
00021 //   $URL: $
00022 // 
00023 //-------------------------------------------------------------------------------
00024 
00025 #ifndef menu_H
00026 #define menu_H
00027 
00028 #include "mbed.h"
00029 
00030 extern volatile bool updateReady;
00031 
00032 extern bool buck;
00033 
00034 extern unsigned int binCode[WEIGHT_BIN_WIDTH+1];
00035 extern unsigned int thermCode[BOARDS_THERMCODE_WIDTH+1];
00036 
00037 extern const float LUT_VER;
00038 
00039 extern unsigned int en_out_code;
00040 extern unsigned int wr_out_code;
00041 
00042 extern unsigned int loopTime;
00043 extern Timer masterTimer;
00044 
00045 void initDRT(void);
00046 void updateTerminal(struct adcValues, struct statusValues);
00047 
00048 enum menuTypes {MENU_DCM1, MENU_CALIBRATE, MENU_TEST, MENU_MAIN};
00049 
00050 void clrScrn(void);
00051 void menuRedraw(bool);
00052 void menuPrompt(int);
00053 
00054 void menu_banner(void);
00055 
00056 extern unsigned short row;
00057 extern int row_test;
00058 extern int row_print;
00059 
00060 #endif