Eli Hughes / Mbed 2 deprecated RobotPowerLogger-V2

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Configuration.h Source File

Configuration.h

00001 #include "DataTypes.h"
00002 
00003 #ifndef _CONFIGURATION_H_
00004 #define _CONFIGURATION_H_
00005 
00006 void LoadDefaults();
00007 void LoadConfiguration();
00008 BOOL KeyValueSplit(const CHAR *LineBuf,CHAR Key,CHAR *Value);
00009 void ToLowerCase(CHAR *LineBuf);
00010 void ExportConfigurationSettings();
00011 
00012 //Voltage Divider for the Li_poly Battery
00013 extern float R17,R15;
00014 
00015 //Voltage Divider for input voltage measurement
00016 extern float R2,R4;
00017 
00018 //Voltage Divider for current voltage measurement (to the 16-bit ADC)
00019 extern float R6,R7;
00020 
00021 //Voltage Divider for current voltage measurement (to the 12-bit ADC)
00022 extern float R8,R9;
00023 
00024 //value of the 2.5Voltage reference
00025 extern float U1_VREF;
00026 //value of the MBED Voltage reference
00027 extern float MBED_VREF;
00028 
00029 //Input diode drops
00030 extern float INPUT_DIODE_DROP;
00031 
00032 
00033 //Parameters for the ACS576 Current Sensor
00034 extern float ACS576_VOFFSET;
00035 extern float ACS576_ISCALE; 
00036 extern float ACS576_IOFFSET_TRIM; 
00037 extern float ACS576_ISCALE_ADJUST; 
00038 
00039 //for self current measurement
00040 extern float R18;
00041 extern float R19;
00042 extern float R20;
00043 extern float R22;
00044 
00045 extern  float   SAMPLE_RATE;
00046 extern  DWORD   WRITE_BLOCK_THRESH;
00047 
00048 #define SAMPLE_RATE_DEFAULT                  (250.0)
00049 #define WRITE_BLOCK_THRESH_DEFAULT           (128)
00050 
00051 #define MAX_ID_LENGTH   8
00052 extern CHAR ID[MAX_ID_LENGTH+1];
00053 
00054 //Used to correct the input voltage measurement
00055 extern float  VSCALE_ADJUST; 
00056 extern float  VOFFSET_ADJUST; 
00057 
00058 #endif