Don't care.
This commit is contained in:
+29
-1
@@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#define BORAD_C5DA
|
||||
#define BORAD_7A4F
|
||||
|
||||
typedef struct _formula{
|
||||
|
||||
@@ -1882,6 +1882,34 @@ struct _correction{
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef BORAD_7A4F
|
||||
{
|
||||
.ADC_volt.coeff = (-6264891),
|
||||
.ADC_volt.offset = 101964857690,
|
||||
|
||||
.ADC_current[0].coeff = 31203932,
|
||||
.ADC_current[0].offset = (-508164263338),
|
||||
|
||||
.ADC_current[1].coeff = 1041171476,
|
||||
.ADC_current[1].offset = (-16952358953285),
|
||||
|
||||
.ADC_current[2].coeff = 31209932530,
|
||||
.ADC_current[2].offset = (-508182602606579),
|
||||
|
||||
.DAC2RealV.coeff = (-10503808),
|
||||
.DAC2RealV.offset = 560926210705,
|
||||
|
||||
.Usercode2DAC.coeff = (-10503808),
|
||||
.Usercode2DAC.offset = 560926210705,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
|
||||
.Gain1Boundary[0] = 0x5900,
|
||||
.Gain1Boundary[1] = 0x64DD
|
||||
};
|
||||
#endif
|
||||
|
||||
// this function turn ADC measure value (0xXXXX) into real voltage
|
||||
// unit should be uV
|
||||
static int32_t DecodeADCVolt(uint16_t ADC_measure){
|
||||
|
||||
Reference in New Issue
Block a user