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.
main.h
00001 00002 #ifndef MAIN_H 00003 #define MAIN_H 00004 00005 #include "mbed.h" 00006 #include "Watchdog.h" 00007 #include "Ser25lcxxx.h" 00008 00009 00010 extern string HARDWARE; 00011 extern string SOFTWARE; 00012 extern string AUTHOR; 00013 00014 extern Serial pc;//Debug Port via USB 00015 extern Serial usart6; 00016 extern SPI spi;//SPI 00017 extern Ser25LCxxx eeprom; 00018 extern Watchdog wd; 00019 00020 extern Timer tPop; 00021 extern Timer tPush; 00022 extern Timer tRst; 00023 extern Timer tSpeed; 00024 00025 extern float minScale; 00026 extern float maxScale;//Max Scale variable to stop max RPM, max ml/min and max % 00027 00028 extern char *readbuf; 00029 extern bool maxFlag; 00030 extern bool arrowFlag; 00031 00032 extern bool rmtFlag; 00033 extern bool maxBtnPress; 00034 extern uint8_t storedTask;//Remember the previous state machine state 00035 extern volatile float ml; 00036 00037 /////////////////////////////////////////////////////////////////////////////// 00038 // STRUCTURES 00039 /////////////////////////////////////////////////////////////////////////////// 00040 struct settingsNVM{ 00041 uint8_t flowUnits;//0 00042 uint8_t runMode;//1 00043 uint8_t autoRestart;//2 00044 uint8_t pumpHeadStatus;//3 00045 uint8_t alarm;//4 00046 uint8_t headSide;//5 00047 uint8_t pumpOnOff;//6 00048 uint8_t spare;//7 00049 00050 float speedLimit;//8 00051 float flowUnitVal;//12 00052 float mA_low;//16 00053 float mA_high;//20; 00054 float flow_low;//24 00055 float flow_high;//28 00056 float adc_min_v;//32 00057 float adc_max_v;//36 00058 float dac_v_low;//40 00059 float dac_v_high;//44 00060 00061 uint8_t rmtStopPump;//48 00062 uint8_t outPut1;//Stores the setting, analogue, manual, run status, general alarm, leak detect, fluid level, contact mode on page 36 00063 uint8_t outPut1Logic;//Output logic state can be HI or LO depend on tick box setting on page 36 00064 uint8_t outPut2;//Stores the setting, analogue, manual, run status, general alarm, leak detect, fluid level, contact mode on page 36 00065 uint8_t outPut2Logic;//Output logic state can be HI or LO depend on tick box setting on page 36 00066 uint8_t _4_20mAoutPut; 00067 00068 }; 00069 00070 /////////////////////////////////////////////////////////////////////////////// 00071 // STRUCTURE DEFINITIONS 00072 /////////////////////////////////////////////////////////////////////////////// 00073 extern struct settingsNVM nvm; 00074 00075 void sysInit(void); 00076 00077 #endif
Generated on Tue Jul 19 2022 00:58:42 by
1.7.2