Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Functions.h
00001 00002 #ifndef FUNCTIONS_H 00003 #define FUNCTIONS_H 00004 00005 #include "mbed.h" 00006 #include "Definitions.h" 00007 00008 extern Thread thread; 00009 extern volatile uint16_t loopTime; 00010 extern volatile bool loopTimeFlag; 00011 extern volatile bool readFlag; 00012 00013 extern uint8_t pumpType; 00014 extern const uint8_t uOutPut1_ID[7]; 00015 extern const uint8_t uOutPut2_ID[7]; 00016 extern const uint8_t uFlowUnitID[10]; 00017 extern const string sFlowUnits[]; 00018 extern const float fMaxFlowUnits[][10]; 00019 extern const float fMinFlowUnits[][10]; 00020 00021 extern const string menuStringArray[][10]; 00022 00023 extern bool incFlag; 00024 extern bool decFlag; 00025 extern bool okFlag; 00026 extern bool manFlag; 00027 00028 extern uint8_t calState; 00029 00030 uint8_t decodeByteNVM(uint8_t nvmByte, uint8_t *prec); 00031 00032 char* itoa(int num, char* str, int base); 00033 long mapI(long x, long in_min, long in_max, long out_min, long out_max); 00034 float mapF(float in, float inMin, float inMax, float outMin, float outMax); 00035 void nexScrnUpdate(void); 00036 void dbgNextion(void); 00037 void eepromTesting(void); 00038 void infoScrn(void); 00039 void NVM_update_Thread(void); 00040 00041 void nexInit(uint32_t baud); 00042 float low_pass_filterF(float x); 00043 void keyScan(void); 00044 float flowUnitPrec(int8_t precision); 00045 uint8_t runModeNVM(uint8_t settingIndex); 00046 void dbgStates(uint8_t state); 00047 uint8_t touchBtn(uint8_t nexPage, uint8_t nexBtn, uint8_t nexPushPop); 00048 uint8_t anaCal(void); 00049 float incDecControl(float *val, float precision, float min, float max, float speedLimit); 00050 bool drawCalGraph(float x1, float y1, float x2, float y2,bool draw); 00051 uint8_t retLastStoredTask(uint8_t storedTask); 00052 void flowUnitInc(uint8_t *flowUx, uint8_t *flowUy, uint8_t *flowUz); 00053 void flowUnitDec(uint8_t *flowUx, uint8_t *flowUy, uint8_t *flowUz); 00054 void dispList(uint8_t i[3], uint8_t incDec, uint8_t stringList, const string sArray[2][10], uint8_t maxListStrings); 00055 uint8_t ReadListIndexNVM(uint8_t nvm); 00056 void loopTimeMeasure(void); 00057 float motorRPM(void); 00058 00059 #endif
Generated on Tue Jul 19 2022 00:58:42 by
1.7.2