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.
Dependencies: CANBuffer mbed SystemManagement mbed-rtos
SysMngmt.h
00001 #ifndef _SYSMNGMT_ 00002 #define _SYSMNGMT_ 00003 #include "mbed.h" 00004 00005 #define MSEC_HRS 2.77778e-7 00006 #define DC_DC_ISENSE_OFFSET_V 0.5 00007 #define DC_DC_ISENSE_INCREMENT 0.133 00008 00009 #define BAT_ISENSE_OFFSET_V 1.65 00010 #define BAT_ISENSE_INCREMENT 0.5297 00011 00012 Serial pc(USBTX,USBRX); 00013 CAN CAN_SysM(p30,p29); 00014 00015 //Temperature Input 00016 AnalogIn Coolant1(p17); //Brass ones 00017 AnalogIn Coolant2(p16); //Brass ones 00018 AnalogIn DC_DC(p18); //Murata 00019 AnalogIn ChargerFET(p15);//Murata 00020 AnalogIn BatISense(p19); 00021 AnalogIn DCSense(p20); 00022 00023 typedef union convert{ 00024 float FLOAT; 00025 char C_FLOAT[4]; 00026 }ftc; 00027 00028 // Call function at reccuring interval 00029 Ticker ReadIMD, PollSDSwitch, ReadTemperature, ReadBatteryState; 00030 00031 double BATmA_Hr; 00032 float DCA_msec,BATA_msec; 00033 float Bat_I_Ratio,DC_I_Ratio; 00034 CANMessage RxBuffer[10]={}; 00035 00036 /* 00037 PwmOut Pump(p26); 00038 PwmOut Fan1(p25); 00039 PwmOut Fan2(p24); 00040 PwmOut Fan3(p23); 00041 */ 00042 #endif /* _SYSMNGMT_ */
Generated on Sat Aug 13 2022 03:42:38 by
1.7.2