From 6b1c0ca9aaf5d8a38dfb31af6f09008a8530e4fe Mon Sep 17 00:00:00 2001 From: Benny Liu Date: Wed, 1 Jul 2020 14:37:30 +0800 Subject: [PATCH] Don't care. --- .../app/headstage/EliteDeviceCorrection.h | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/EliteDeviceCorrection.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/EliteDeviceCorrection.h index 98b31c097..b750bcab1 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/EliteDeviceCorrection.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/EliteDeviceCorrection.h @@ -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){