3350 lines
88 KiB
C
3350 lines
88 KiB
C
|
|
#include "elite_correction.h"
|
||
|
|
#include "edc.h"
|
||
|
|
|
||
|
|
#ifdef BOARD_C7_A1 // megafly
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6256,
|
||
|
|
.ADC_volt[0].offset = (-101532028),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215138,
|
||
|
|
.ADC_volt[1].offset = (-3501890770),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6245014,
|
||
|
|
.ADC_volt[2].offset = (-101751226981),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3125920,
|
||
|
|
.ADC_current[0].offset = (-50880328288),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71636129,
|
||
|
|
.ADC_current[1].offset = (-1166093783868),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459555637,
|
||
|
|
.ADC_current[2].offset = (-23757721396024),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30723232882,
|
||
|
|
.ADC_current[3].offset = (-500144809348170),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10543817),
|
||
|
|
.Usercode2DAC[0].offset = 583163641972,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178077711),
|
||
|
|
.Usercode2DAC[1].offset = 4777894559527,
|
||
|
|
|
||
|
|
//.Usercode2DAC15v = 41485,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C7_24 // megafly
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6251,
|
||
|
|
.ADC_volt[0].offset = (-99750397),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214419,
|
||
|
|
.ADC_volt[1].offset = (-3491659841),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6227737,
|
||
|
|
.ADC_volt[2].offset = (-101557618268),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3138613,
|
||
|
|
.ADC_current[0].offset = (-51149570420),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71715555,
|
||
|
|
.ADC_current[1].offset = (-1168777305352),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1455501991,
|
||
|
|
.ADC_current[2].offset = (-23719715469357),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30688298312,
|
||
|
|
.ADC_current[3].offset = (-500150163983795),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10540182),
|
||
|
|
.Usercode2DAC[0].offset = 584459109821,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179175265),
|
||
|
|
.Usercode2DAC[1].offset = 4801179734836,
|
||
|
|
|
||
|
|
//.Usercode2DAC15v = MEGA_15V,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C8_74 // megafly
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6260,
|
||
|
|
.ADC_volt[0].offset = (-99787811),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214494,
|
||
|
|
.ADC_volt[1].offset = (-3492178752),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6231057,
|
||
|
|
.ADC_volt[2].offset = (-101591914655),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3148251,
|
||
|
|
.ADC_current[0].offset = (-51277675282),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71859885,
|
||
|
|
.ADC_current[1].offset = (-1170556644217),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462458824,
|
||
|
|
.ADC_current[2].offset = (-23822062635236),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30748473913,
|
||
|
|
.ADC_current[3].offset = (-500860829105930),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10570366),
|
||
|
|
.Usercode2DAC[0].offset = 585189864243,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178920333),
|
||
|
|
.Usercode2DAC[1].offset = 4794801719146,
|
||
|
|
|
||
|
|
//.Usercode2DAC15v = 41355,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_04
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6194,
|
||
|
|
.ADC_volt[0].offset = (-100974071),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215506,
|
||
|
|
.ADC_volt[1].offset = (-3517864544),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6243728,
|
||
|
|
.ADC_volt[2].offset = (-102012564806),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3139436,
|
||
|
|
.ADC_current[0].offset = (-51217085818),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71622830,
|
||
|
|
.ADC_current[1].offset = (-1168462302473),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462344785,
|
||
|
|
.ADC_current[2].offset = (-23855062972762),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30689232716,
|
||
|
|
.ADC_current[3].offset = (-500670762245868),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10507403),
|
||
|
|
.Usercode2DAC[0].offset = 582940058695,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178479878),
|
||
|
|
.Usercode2DAC[1].offset = 4782895510276,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6243728),
|
||
|
|
.ADC_Vout_volt[0].offset = 102012564806,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_9F
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6118,
|
||
|
|
.ADC_volt[0].offset = (-99518615),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 209748,
|
||
|
|
.ADC_volt[1].offset = (-3417768725),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6131501,
|
||
|
|
.ADC_volt[2].offset = (-99999128933),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3148514,
|
||
|
|
.ADC_current[0].offset = (-50485662786),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71804564,
|
||
|
|
.ADC_current[1].offset = (-1151299062516),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1463584080,
|
||
|
|
.ADC_current[2].offset = (-23465643586165),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30747070723,
|
||
|
|
.ADC_current[3].offset = (-492979538892707),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10534427),
|
||
|
|
.Usercode2DAC[0].offset = 577647889649,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178317702),
|
||
|
|
.Usercode2DAC[1].offset = 4773350420707,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6131501),
|
||
|
|
.ADC_Vout_volt[0].offset = 99999128933,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C9_03
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6268,
|
||
|
|
.ADC_volt[0].offset = (-103687047),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216289,
|
||
|
|
.ADC_volt[1].offset = (-3581110600),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6255165,
|
||
|
|
.ADC_volt[2].offset = (-103653080405),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3136844,
|
||
|
|
.ADC_current[0].offset = (-51057548335),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71729828,
|
||
|
|
.ADC_current[1].offset = (-1167474302377),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457587112,
|
||
|
|
.ADC_current[2].offset = (-23722230272507),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30688020320,
|
||
|
|
.ADC_current[3].offset = (-499567626613052),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10538549),
|
||
|
|
.Usercode2DAC[0].offset = 582561125327,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179443367),
|
||
|
|
.Usercode2DAC[1].offset = 4806000714268,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6255165),
|
||
|
|
.ADC_Vout_volt[0].offset = 103653080405,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_0C
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6232,
|
||
|
|
.ADC_volt[0].offset = (-100384012),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216642,
|
||
|
|
.ADC_volt[1].offset = (-3529452462),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6233108,
|
||
|
|
.ADC_volt[2].offset = (-100604531870),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3145651,
|
||
|
|
.ADC_current[0].offset = (-51102123184),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71727284,
|
||
|
|
.ADC_current[1].offset = (-1165169041311),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1463455403,
|
||
|
|
.ADC_current[2].offset = (-23772125686630),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30773610135,
|
||
|
|
.ADC_current[3].offset = (-499913505030514),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10570464),
|
||
|
|
.Usercode2DAC[0].offset = 583479916773,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178725281),
|
||
|
|
.Usercode2DAC[1].offset = 4787957689974,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6233108),
|
||
|
|
.ADC_Vout_volt[0].offset = 100604531870,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C7_8B
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6249,
|
||
|
|
.ADC_volt[0].offset = (-101903240),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215941,
|
||
|
|
.ADC_volt[1].offset = (-3521384835),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6294366,
|
||
|
|
.ADC_volt[2].offset = (-102620622093),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3129830,
|
||
|
|
.ADC_current[0].offset = (-51014824471),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71788067,
|
||
|
|
.ADC_current[1].offset = (-1170244959825),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1458661502,
|
||
|
|
.ADC_current[2].offset = (-23775481123924),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30795126129,
|
||
|
|
.ADC_current[3].offset = (-501938592688357),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10542611),
|
||
|
|
.Usercode2DAC[0].offset = 584491419329,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178426150),
|
||
|
|
.Usercode2DAC[1].offset = 4782217061006,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6259618),
|
||
|
|
.ADC_Vout_volt[0].offset = 101838447632,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_15
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6213,
|
||
|
|
.ADC_volt[0].offset = (-100904734),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 213486,
|
||
|
|
.ADC_volt[1].offset = (-3475774161),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6220838,
|
||
|
|
.ADC_volt[2].offset = (-101367452805),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3133669,
|
||
|
|
.ADC_current[0].offset = (-50985338691),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71848701,
|
||
|
|
.ADC_current[1].offset = (-1168930549263),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1465220422,
|
||
|
|
.ADC_current[2].offset = (-23836711044239),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30753809644,
|
||
|
|
.ADC_current[3].offset = (-500364315274466),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10519306),
|
||
|
|
.Usercode2DAC[0].offset = 583547544303,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179481859),
|
||
|
|
.Usercode2DAC[1].offset = 4808633144378,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6220838),
|
||
|
|
.ADC_Vout_volt[0].offset = 101367452805,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C7_97
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6285,
|
||
|
|
.ADC_volt[0].offset = (-102399765),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 217179,
|
||
|
|
.ADC_volt[1].offset = (-3541219740),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6293290,
|
||
|
|
.ADC_volt[2].offset = (-102701705789),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3124793,
|
||
|
|
.ADC_current[0].offset = (-50785593516),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71661923,
|
||
|
|
.ADC_current[1].offset = (-1164632411724),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459117290,
|
||
|
|
.ADC_current[2].offset = (-23712400276764),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30624856407,
|
||
|
|
.ADC_current[3].offset = (-497729976849926),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10517402),
|
||
|
|
.Usercode2DAC[0].offset = 581255473226,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178353177),
|
||
|
|
.Usercode2DAC[1].offset = 4777407394955,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6293290),
|
||
|
|
.ADC_Vout_volt[0].offset = 102701705789,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_39
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6208,
|
||
|
|
.ADC_volt[0].offset = (-100729867),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214500,
|
||
|
|
.ADC_volt[1].offset = (-3488858165),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6228268,
|
||
|
|
.ADC_volt[2].offset = (-101395718164),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3139511,
|
||
|
|
.ADC_current[0].offset = (-51174954874),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71851912,
|
||
|
|
.ADC_current[1].offset = (-1171152880960),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1461965017,
|
||
|
|
.ADC_current[2].offset = (-23828340962540),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30773724865,
|
||
|
|
.ADC_current[3].offset = (-501611882239925),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10520659),
|
||
|
|
.Usercode2DAC[0].offset = 581192312483,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177973792),
|
||
|
|
.Usercode2DAC[1].offset = 4768259045109,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6228268),
|
||
|
|
.ADC_Vout_volt[0].offset = 101395718164,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C5_CD
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6279,
|
||
|
|
.ADC_volt[0].offset = (-100548659),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216253,
|
||
|
|
.ADC_volt[1].offset = (-3471891549),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6277392,
|
||
|
|
.ADC_volt[2].offset = (-100862395596),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3136805,
|
||
|
|
.ADC_current[0].offset = (-50213343000),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72032077,
|
||
|
|
.ADC_current[1].offset = (-1153034516566),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1465628098,
|
||
|
|
.ADC_current[2].offset = (-23459820455868),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30833759075,
|
||
|
|
.ADC_current[3].offset = (-493561287778940),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10522269),
|
||
|
|
.Usercode2DAC[0].offset = 578531626885,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177684018),
|
||
|
|
.Usercode2DAC[1].offset = 4759051659585,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6277392),
|
||
|
|
.ADC_Vout_volt[0].offset = 100862395596,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C7_71 // die
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6301,
|
||
|
|
.ADC_volt[0].offset = (-102184705),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216877,
|
||
|
|
.ADC_volt[1].offset = (-3519583281),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6298448,
|
||
|
|
.ADC_volt[2].offset = (-102304286091),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3115431,
|
||
|
|
.ADC_current[0].offset = (-50586460394),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71203612,
|
||
|
|
.ADC_current[1].offset = (-1156022105141),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1451318434,
|
||
|
|
.ADC_current[2].offset = (-23560731221983),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30518004246,
|
||
|
|
.ADC_current[3].offset = (-495456618814855),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10568719),
|
||
|
|
.Usercode2DAC[0].offset = 585036272447,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179441058),
|
||
|
|
.Usercode2DAC[1].offset = 4807380622351,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6298448),
|
||
|
|
.ADC_Vout_volt[0].offset = 102304286091,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_E1 // not well
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = (-6251051),
|
||
|
|
.ADC_volt[0].offset = 102081366120,
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = (-6251051),
|
||
|
|
.ADC_volt[1].offset = 102081366120,
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = (-6251051),
|
||
|
|
.ADC_volt[2].offset = 102081366120,
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 2079230,
|
||
|
|
.ADC_current[0].offset = (-34256067906),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 64550018,
|
||
|
|
.ADC_current[1].offset = (-1063052554820),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 2096336928,
|
||
|
|
.ADC_current[2].offset = (-34514344284104),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 60200953965,
|
||
|
|
.ADC_current[3].offset = (-991270580672004),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10511469),
|
||
|
|
.Usercode2DAC[0].offset = 563770560100,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-10511469),
|
||
|
|
.Usercode2DAC[1].offset = 563770560100,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6251051),
|
||
|
|
.ADC_Vout_volt[0].offset = 102081366120,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_D4 // not well
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6226,
|
||
|
|
.ADC_volt[0].offset = (-100075170),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215972,
|
||
|
|
.ADC_volt[1].offset = (-3484380085),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6223818,
|
||
|
|
.ADC_volt[2].offset = (-100571214617),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3136256,
|
||
|
|
.ADC_current[0].offset = (-50747854551),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72219340,
|
||
|
|
.ADC_current[1].offset = (-1168719058378),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1450319129,
|
||
|
|
.ADC_current[2].offset = (-23465744053517),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30710734735,
|
||
|
|
.ADC_current[3].offset = (-496978137538345),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10543212),
|
||
|
|
.Usercode2DAC[0].offset = 582976692942,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178746005),
|
||
|
|
.Usercode2DAC[1].offset = 4789272862069,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6223818),
|
||
|
|
.ADC_Vout_volt[0].offset = 100571214617,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_8B
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6268,
|
||
|
|
.ADC_volt[0].offset = (-102174553),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215573,
|
||
|
|
.ADC_volt[1].offset = (-3518341586),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6261878,
|
||
|
|
.ADC_volt[2].offset = (-102172685043),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3126866,
|
||
|
|
.ADC_current[0].offset = (-50886322937),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71901602,
|
||
|
|
.ADC_current[1].offset = (-1169888894091),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1460660024,
|
||
|
|
.ADC_current[2].offset = (-23764191484059),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30760667430,
|
||
|
|
.ADC_current[3].offset = (-500493888709662),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10505380),
|
||
|
|
.Usercode2DAC[0].offset = 582175976769,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179056776),
|
||
|
|
.Usercode2DAC[1].offset = 4796575970947,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6261878),
|
||
|
|
.ADC_Vout_volt[0].offset = 102172685043,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_ED_5A
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6255,
|
||
|
|
.ADC_volt[0].offset = (-101981496),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214609,
|
||
|
|
.ADC_volt[1].offset = (-3506688208),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6287576,
|
||
|
|
.ADC_volt[2].offset = (-102718216344),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3135873,
|
||
|
|
.ADC_current[0].offset = (-51079799127),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71803212,
|
||
|
|
.ADC_current[1].offset = (-1169615889960),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1458743323,
|
||
|
|
.ADC_current[2].offset = (-23760656826631),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30800455379,
|
||
|
|
.ADC_current[3].offset = (-501709286949801),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10514623),
|
||
|
|
.Usercode2DAC[0].offset = 582327592403,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178675535),
|
||
|
|
.Usercode2DAC[1].offset = 4786928374132,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6253328),
|
||
|
|
.ADC_Vout_volt[0].offset = 101918078788,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C7_05
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6269,
|
||
|
|
.ADC_volt[0].offset = (-101813048),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215354,
|
||
|
|
.ADC_volt[1].offset = (-3500610940),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6248559,
|
||
|
|
.ADC_volt[2].offset = (-101543256078),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3144823,
|
||
|
|
.ADC_current[0].offset = (-51183412127),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72137934,
|
||
|
|
.ADC_current[1].offset = (-1174253060754),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1470780978,
|
||
|
|
.ADC_current[2].offset = (-23938930473261),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30871875361,
|
||
|
|
.ADC_current[3].offset = (-502531399257398),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10511339),
|
||
|
|
.Usercode2DAC[0].offset = 582043250535,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178194193),
|
||
|
|
.Usercode2DAC[1].offset = 4774760094641,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6239525),
|
||
|
|
.ADC_Vout_volt[0].offset = 101557531789,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_18_04_ED_37_C6_EF
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6249,
|
||
|
|
.ADC_volt[0].offset = (-101962136),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214520,
|
||
|
|
.ADC_volt[1].offset = (-3499930408),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6270421,
|
||
|
|
.ADC_volt[2].offset = (-102272239448),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3117075,
|
||
|
|
.ADC_current[0].offset = (-50831406705),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71674054,
|
||
|
|
.ADC_current[1].offset = (-1168888388422),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1458913229,
|
||
|
|
.ADC_current[2].offset = (-23791264715126),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30666802629,
|
||
|
|
.ADC_current[3].offset = (-500120197193733),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10519186),
|
||
|
|
.Usercode2DAC[0].offset = 583321643939,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178169833),
|
||
|
|
.Usercode2DAC[1].offset = 4775256075489,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6250959),
|
||
|
|
.ADC_Vout_volt[0].offset = 101947175548,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C5_AF
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6251,
|
||
|
|
.ADC_volt[0].offset = (-101338305),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214878,
|
||
|
|
.ADC_volt[1].offset = (-3492068490),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6268745,
|
||
|
|
.ADC_volt[2].offset = (-101859993760),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3137049,
|
||
|
|
.ADC_current[0].offset = (-50892341056),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71900313,
|
||
|
|
.ADC_current[1].offset = (-1166487347464),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1460255142,
|
||
|
|
.ADC_current[2].offset = (-23689442308761),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30735138864,
|
||
|
|
.ADC_current[3].offset = (-498647746053279),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10544646),
|
||
|
|
.Usercode2DAC[0].offset = 583186463861,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179108908),
|
||
|
|
.Usercode2DAC[1].offset = 4798035902193,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6241442),
|
||
|
|
.ADC_Vout_volt[0].offset = 101418345114,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C6_E7
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6273,
|
||
|
|
.ADC_volt[0].offset = (-101507772),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215283,
|
||
|
|
.ADC_volt[1].offset = (-3492943359),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6298452,
|
||
|
|
.ADC_volt[2].offset = (-102172065832),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3126505,
|
||
|
|
.ADC_current[0].offset = (-50854986702),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71665253,
|
||
|
|
.ADC_current[1].offset = (-1165783058810),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1455913937,
|
||
|
|
.ADC_current[2].offset = (-23682364693928),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30656599965,
|
||
|
|
.ADC_current[3].offset = (-498686538286126),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10548474),
|
||
|
|
.Usercode2DAC[0].offset = 582963458480,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178967404),
|
||
|
|
.Usercode2DAC[1].offset = 4794329226068,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6298452),
|
||
|
|
.ADC_Vout_volt[0].offset = 102172065832,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_ED_49
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6268,
|
||
|
|
.ADC_volt[0].offset = (-102013810),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215623,
|
||
|
|
.ADC_volt[1].offset = (-3517703826),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6273107,
|
||
|
|
.ADC_volt[2].offset = (-102313312961),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3131182,
|
||
|
|
.ADC_current[0].offset = (-50878212788),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72031369,
|
||
|
|
.ADC_current[1].offset = (-1170539886748),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1458064484,
|
||
|
|
.ADC_current[2].offset = (-23692701530531),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30723432431,
|
||
|
|
.ADC_current[3].offset = (-499272075689840),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10554205),
|
||
|
|
.Usercode2DAC[0].offset = 583041949770,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178763469),
|
||
|
|
.Usercode2DAC[1].offset = 4789592107725,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6273107),
|
||
|
|
.ADC_Vout_volt[0].offset = 102313312961,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_F0_8F
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6278,
|
||
|
|
.ADC_volt[0].offset = (-102005495),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215785,
|
||
|
|
.ADC_volt[1].offset = (-3508414799),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6279952,
|
||
|
|
.ADC_volt[2].offset = (-102076620345),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3150827,
|
||
|
|
.ADC_current[0].offset = (-51217765026),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72047691,
|
||
|
|
.ADC_current[1].offset = (-1171229918671),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1461468562,
|
||
|
|
.ADC_current[2].offset = (-23756885490434),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30873625562,
|
||
|
|
.ADC_current[3].offset = (-501896591223166),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10547100),
|
||
|
|
.Usercode2DAC[0].offset = 583010928122,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178807914),
|
||
|
|
.Usercode2DAC[1].offset = 4790274893179,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6267532),
|
||
|
|
.ADC_Vout_volt[0].offset = 102289329527,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_E7_74
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6244,
|
||
|
|
.ADC_volt[0].offset = (-101801810),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215275,
|
||
|
|
.ADC_volt[1].offset = (-3519927387),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6279589,
|
||
|
|
.ADC_volt[2].offset = (-102655566741),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3123389,
|
||
|
|
.ADC_current[0].offset = (-50776951758),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71847315,
|
||
|
|
.ADC_current[1].offset = (-1168069714834),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1460393971,
|
||
|
|
.ADC_current[2].offset = (-23742664117895),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30737287182,
|
||
|
|
.ADC_current[3].offset = (-499721524793572),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10507966),
|
||
|
|
.Usercode2DAC[0].offset = 581918490604,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178253119),
|
||
|
|
.Usercode2DAC[1].offset = 4776203208556,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6220139),
|
||
|
|
.ADC_Vout_volt[0].offset = 100997305774,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_ED_21
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6237,
|
||
|
|
.ADC_volt[0].offset = (-101506434),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214187,
|
||
|
|
.ADC_volt[1].offset = (-3489017250),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6277851,
|
||
|
|
.ADC_volt[2].offset = (-102237808487),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3134799,
|
||
|
|
.ADC_current[0].offset = (-50971095746),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71733616,
|
||
|
|
.ADC_current[1].offset = (-1166459693615),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462021081,
|
||
|
|
.ADC_current[2].offset = (-23772269392025),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30772308780,
|
||
|
|
.ADC_current[3].offset = (-500364040829566),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-9831388),
|
||
|
|
.Usercode2DAC[0].offset = 569086963164,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178506659),
|
||
|
|
.Usercode2DAC[1].offset = 4784370884020,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6669450),
|
||
|
|
.ADC_Vout_volt[0].offset = 110039933065,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_EE_3A
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6258,
|
||
|
|
.ADC_volt[0].offset = (-101672777),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215066,
|
||
|
|
.ADC_volt[1].offset = (-3500967589),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6272676,
|
||
|
|
.ADC_volt[2].offset = (-102084032306),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3138624,
|
||
|
|
.ADC_current[0].offset = (-51107815498),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71797400,
|
||
|
|
.ADC_current[1].offset = (-1169199810893),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462613856,
|
||
|
|
.ADC_current[2].offset = (-23816683013402),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30733477851,
|
||
|
|
.ADC_current[3].offset = (-500459333089804),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10546249),
|
||
|
|
.Usercode2DAC[0].offset = 582696047493,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179017621),
|
||
|
|
.Usercode2DAC[1].offset = 4795048778723,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6302213),
|
||
|
|
.ADC_Vout_volt[0].offset = 102168852209,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_F0_10
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6265,
|
||
|
|
.ADC_volt[0].offset = (-102044175),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215568,
|
||
|
|
.ADC_volt[1].offset = (-3513041278),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6291508,
|
||
|
|
.ADC_volt[2].offset = (-102503354601),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3130478,
|
||
|
|
.ADC_current[0].offset = (-50927860729),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71668268,
|
||
|
|
.ADC_current[1].offset = (-1166167114301),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1455740220,
|
||
|
|
.ADC_current[2].offset = (-23685588119096),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30724351409,
|
||
|
|
.ADC_current[3].offset = (-499938195908892),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10589030),
|
||
|
|
.Usercode2DAC[0].offset = 584528260879,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178994142),
|
||
|
|
.Usercode2DAC[1].offset = 4795272847587,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6266232),
|
||
|
|
.ADC_Vout_volt[0].offset = 101900496712,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_EE_EF
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6263,
|
||
|
|
.ADC_volt[0].offset = (-101983153),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214468,
|
||
|
|
.ADC_volt[1].offset = (-3497722617),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6268586,
|
||
|
|
.ADC_volt[2].offset = (-102208366701),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3134472,
|
||
|
|
.ADC_current[0].offset = (-51003312621),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72026797,
|
||
|
|
.ADC_current[1].offset = (-1172092073650),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1463550415,
|
||
|
|
.ADC_current[2].offset = (-23814791825270),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30710210799,
|
||
|
|
.ADC_current[3].offset = (-499732239892393),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10554844),
|
||
|
|
.Usercode2DAC[0].offset = 583784029751,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178890877),
|
||
|
|
.Usercode2DAC[1].offset = 4792844364937,
|
||
|
|
|
||
|
|
// .ADC_Vout_volt[0].coeff = (-6268586),
|
||
|
|
// .ADC_Vout_volt[0].offset = 102208366701,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6294265),
|
||
|
|
.ADC_Vout_volt[0].offset = 102439579115,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_EF_30
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6225,
|
||
|
|
.ADC_volt[0].offset = (-101627266),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215149,
|
||
|
|
.ADC_volt[1].offset = (-3511057579),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6248130,
|
||
|
|
.ADC_volt[2].offset = (-101942172967),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3126816,
|
||
|
|
.ADC_current[0].offset = (-50730387482),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71569011,
|
||
|
|
.ADC_current[1].offset = (-1161194768228),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1454505767,
|
||
|
|
.ADC_current[2].offset = (-23598273597511),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30709412216,
|
||
|
|
.ADC_current[3].offset = (-498226800571450),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10551063),
|
||
|
|
.Usercode2DAC[0].offset = 582600574408,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178153942),
|
||
|
|
.Usercode2DAC[1].offset = 4773288311275,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6316986),
|
||
|
|
.ADC_Vout_volt[0].offset = 102477154168,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_EF_50
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6225,
|
||
|
|
.ADC_volt[0].offset = (-101618312),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215145,
|
||
|
|
.ADC_volt[1].offset = (-3510989671),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6247552,
|
||
|
|
.ADC_volt[2].offset = (-101927817096),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3126845,
|
||
|
|
.ADC_current[0].offset = (-50724794193),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71570973,
|
||
|
|
.ADC_current[1].offset = (-1161201810400),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1454921704,
|
||
|
|
.ADC_current[2].offset = (-23601524459072),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30725601837,
|
||
|
|
.ADC_current[3].offset = (-498468641607526),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10570997),
|
||
|
|
.Usercode2DAC[0].offset = 583893803683,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179121228),
|
||
|
|
.Usercode2DAC[1].offset = 4798271733613,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6256034),
|
||
|
|
.ADC_Vout_volt[0].offset = 101461890090,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_EF_D8
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6273,
|
||
|
|
.ADC_volt[0].offset = (-102095276),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215095,
|
||
|
|
.ADC_volt[1].offset = (-3504344092),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6277141,
|
||
|
|
.ADC_volt[2].offset = (-102241433852),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3136005,
|
||
|
|
.ADC_current[0].offset = (-51063163679),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71877679,
|
||
|
|
.ADC_current[1].offset = (-1170472995911),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457134770,
|
||
|
|
.ADC_current[2].offset = (-23725745980760),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30675955243,
|
||
|
|
.ADC_current[3].offset = (-499509596977295),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10518724),
|
||
|
|
.Usercode2DAC[0].offset = 582223906189,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178823245),
|
||
|
|
.Usercode2DAC[1].offset = 4790465432711,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6242371),
|
||
|
|
.ADC_Vout_volt[0].offset = 102122939769,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_EC_DB
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6253,
|
||
|
|
.ADC_volt[0].offset = (-101589284),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 213950,
|
||
|
|
.ADC_volt[1].offset = (-3478413754),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6261766,
|
||
|
|
.ADC_volt[2].offset = (-101779161845),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3123490,
|
||
|
|
.ADC_current[0].offset = (-50747937364),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72008594,
|
||
|
|
.ADC_current[1].offset = (-1170019761292),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462094342,
|
||
|
|
.ADC_current[2].offset = (-23754450053822),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30812366313,
|
||
|
|
.ADC_current[3].offset = (-500644831088795),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10531175),
|
||
|
|
.Usercode2DAC[0].offset = 582542600701,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178737628),
|
||
|
|
.Usercode2DAC[1].offset = 4788248904802,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6234647),
|
||
|
|
.ADC_Vout_volt[0].offset = 101548515115,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_C8_1C
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6255,
|
||
|
|
.ADC_volt[0].offset = (-101627535),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215154,
|
||
|
|
.ADC_volt[1].offset = (-3498483547),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6259817,
|
||
|
|
.ADC_volt[2].offset = (-101763292366),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3126090,
|
||
|
|
.ADC_current[0].offset = (-50647982572),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71641026,
|
||
|
|
.ADC_current[1].offset = (-1160775309883),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1461499819,
|
||
|
|
.ADC_current[2].offset = (-23677869271192),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30624702111,
|
||
|
|
.ADC_current[3].offset = (-496186393549621),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10494324),
|
||
|
|
.Usercode2DAC[0].offset = 580565793309,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178316690),
|
||
|
|
.Usercode2DAC[1].offset = 4776765335235,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6259013),
|
||
|
|
.ADC_Vout_volt[0].offset = 101183395457,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_EF_20
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6259,
|
||
|
|
.ADC_volt[0].offset = (-102077740),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214742,
|
||
|
|
.ADC_volt[1].offset = (-3507015697),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6275046,
|
||
|
|
.ADC_volt[2].offset = (-102453791228),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3129615,
|
||
|
|
.ADC_current[0].offset = (-50971871899),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71807886,
|
||
|
|
.ADC_current[1].offset = (-1169623040479),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1461348676,
|
||
|
|
.ADC_current[2].offset = (-23800347958660),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30648905665,
|
||
|
|
.ADC_current[3].offset = (-499178960666757),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10533082),
|
||
|
|
.Usercode2DAC[0].offset = 582182818064,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178236664),
|
||
|
|
.Usercode2DAC[1].offset = 4775414400102,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6281714),
|
||
|
|
.ADC_Vout_volt[0].offset = 102089034386,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_F0_57
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6237,
|
||
|
|
.ADC_volt[0].offset = (-101123154),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215249,
|
||
|
|
.ADC_volt[1].offset = (-3495277276),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6267471,
|
||
|
|
.ADC_volt[2].offset = (-101750379253),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3134853,
|
||
|
|
.ADC_current[0].offset = (-50922581048),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71962682,
|
||
|
|
.ADC_current[1].offset = (-1169043761963),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1464887218,
|
||
|
|
.ADC_current[2].offset = (-23795400631960),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30761735363,
|
||
|
|
.ADC_current[3].offset = (-499670709782737),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10544614),
|
||
|
|
.Usercode2DAC[0].offset = 582309535675,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178360026),
|
||
|
|
.Usercode2DAC[1].offset = 4778346474567,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6272529),
|
||
|
|
.ADC_Vout_volt[0].offset = 101761958281,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_F0_1C
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6242,
|
||
|
|
.ADC_volt[0].offset = (-101458118),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214475,
|
||
|
|
.ADC_volt[1].offset = (-3492486726),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6240381,
|
||
|
|
.ADC_volt[2].offset = (-101598014777),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3123722,
|
||
|
|
.ADC_current[0].offset = (-50997568937),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71760593,
|
||
|
|
.ADC_current[1].offset = (-1171658855892),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459199860,
|
||
|
|
.ADC_current[2].offset = (-23823173640843),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30694663468,
|
||
|
|
.ADC_current[3].offset = (-501166816339901),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10523782),
|
||
|
|
.Usercode2DAC[0].offset = 582709929065,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178983079),
|
||
|
|
.Usercode2DAC[1].offset = 4794908098601,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6270998),
|
||
|
|
.ADC_Vout_volt[0].offset = 101861490738,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_F0_C0
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6276,
|
||
|
|
.ADC_volt[0].offset = (-101901339),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215358,
|
||
|
|
.ADC_volt[1].offset = (-3505085070),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6283232,
|
||
|
|
.ADC_volt[2].offset = (-102265651676),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3125571,
|
||
|
|
.ADC_current[0].offset = (-51009326686),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71711390,
|
||
|
|
.ADC_current[1].offset = (-1170357842403),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457028197,
|
||
|
|
.ADC_current[2].offset = (-23777995164009),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30641709380,
|
||
|
|
.ADC_current[3].offset = (-500078021386848),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10567060),
|
||
|
|
.Usercode2DAC[0].offset = 582177222683,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178196868),
|
||
|
|
.Usercode2DAC[1].offset = 4773572419459,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6288470),
|
||
|
|
.ADC_Vout_volt[0].offset = 102817240958,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_ED_A9
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6253,
|
||
|
|
.ADC_volt[0].offset = (-101502219),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215507,
|
||
|
|
.ADC_volt[1].offset = (-3520823429),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6277920,
|
||
|
|
.ADC_volt[2].offset = (-102546260992),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3112565,
|
||
|
|
.ADC_current[0].offset = (-50847999530),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71751097,
|
||
|
|
.ADC_current[1].offset = (-1172275782260),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457191377,
|
||
|
|
.ADC_current[2].offset = (-23804553352645),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30627409173,
|
||
|
|
.ADC_current[3].offset = (-500284053362934),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10552367),
|
||
|
|
.Usercode2DAC[0].offset = 584089188942,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178292979),
|
||
|
|
.Usercode2DAC[1].offset = 4770636112221,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6243587),
|
||
|
|
.ADC_Vout_volt[0].offset = 101736320915,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_33
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6237,
|
||
|
|
.ADC_volt[0].offset = (-101455030),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214265,
|
||
|
|
.ADC_volt[1].offset = (-3487092245),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6256397,
|
||
|
|
.ADC_volt[2].offset = (-101799846487),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3134559,
|
||
|
|
.ADC_current[0].offset = (-51000796097),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71833792,
|
||
|
|
.ADC_current[1].offset = (-1168845243874),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457375736,
|
||
|
|
.ADC_current[2].offset = (-23712358183121),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30705728614,
|
||
|
|
.ADC_current[3].offset = (-499576184270009),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10540269),
|
||
|
|
.Usercode2DAC[0].offset = 582832342863,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178624388),
|
||
|
|
.Usercode2DAC[1].offset = 4785585799142,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6278424),
|
||
|
|
.ADC_Vout_volt[0].offset = 101716668226,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_F0_9F
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6252,
|
||
|
|
.ADC_volt[0].offset = (-101512876),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215073,
|
||
|
|
.ADC_volt[1].offset = (-3498054288),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6269396,
|
||
|
|
.ADC_volt[2].offset = (-101944366244),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3113681,
|
||
|
|
.ADC_current[0].offset = (-50610143255),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71210227,
|
||
|
|
.ADC_current[1].offset = (-1157592899742),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1451226263,
|
||
|
|
.ADC_current[2].offset = (-23589053802033),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30488692117,
|
||
|
|
.ADC_current[3].offset = (-495612279634488),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10550642),
|
||
|
|
.Usercode2DAC[0].offset = 582604059772,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178643701),
|
||
|
|
.Usercode2DAC[1].offset = 4785614749578,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6264307),
|
||
|
|
.ADC_Vout_volt[0].offset = 101552747872,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_A4_DA_32_D4_F0_98
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6297,
|
||
|
|
.ADC_volt[0].offset = (-102239918),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215976,
|
||
|
|
.ADC_volt[1].offset = (-3511853183),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6301113,
|
||
|
|
.ADC_volt[2].offset = (-102433011284),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3118586,
|
||
|
|
.ADC_current[0].offset = (-50715343990),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71746069,
|
||
|
|
.ADC_current[1].offset = (-1166803340629),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1455292013,
|
||
|
|
.ADC_current[2].offset = (-23665461435982),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30595881990,
|
||
|
|
.ADC_current[3].offset = (-497497244122591),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10538017),
|
||
|
|
.Usercode2DAC[0].offset = 582034687542,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178711565),
|
||
|
|
.Usercode2DAC[1].offset = 4787022610445,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6257247),
|
||
|
|
.ADC_Vout_volt[0].offset = 101746321485,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_E7_2D
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6293,
|
||
|
|
.ADC_volt[0].offset = (-101879204),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214951,
|
||
|
|
.ADC_volt[1].offset = (-3487456446),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6302893,
|
||
|
|
.ADC_volt[2].offset = (-102247400965),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3126362,
|
||
|
|
.ADC_current[0].offset = (-50873876216),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71702595,
|
||
|
|
.ADC_current[1].offset = (-1166886742992),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459581012,
|
||
|
|
.ADC_current[2].offset = (-23751100369740),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30708070086,
|
||
|
|
.ADC_current[3].offset = (-499673411607884),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10564445),
|
||
|
|
.Usercode2DAC[0].offset = 582216550111,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177965827),
|
||
|
|
.Usercode2DAC[1].offset = 4768201922998,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6227116),
|
||
|
|
.ADC_Vout_volt[0].offset = 101026584592,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_E8_9D
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6249,
|
||
|
|
.ADC_volt[0].offset = (-101505717),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215580,
|
||
|
|
.ADC_volt[1].offset = (-3512345207),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6283887,
|
||
|
|
.ADC_volt[2].offset = (-102363320419),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3136684,
|
||
|
|
.ADC_current[0].offset = (-51102305368),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71987819,
|
||
|
|
.ADC_current[1].offset = (-1172956066539),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1466095234,
|
||
|
|
.ADC_current[2].offset = (-23885734424423),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30781585105,
|
||
|
|
.ADC_current[3].offset = (-501473184778624),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10564445),
|
||
|
|
.Usercode2DAC[0].offset = 582216550111,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177965827),
|
||
|
|
.Usercode2DAC[1].offset = 4768201922998,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6227116),
|
||
|
|
.ADC_Vout_volt[0].offset = 101026584592,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_EF_FF
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6250,
|
||
|
|
.ADC_volt[0].offset = (-101751630),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214221,
|
||
|
|
.ADC_volt[1].offset = (-3495568534),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6253401,
|
||
|
|
.ADC_volt[2].offset = (-102023366228),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3136205,
|
||
|
|
.ADC_current[0].offset = (-50973074653),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71847519,
|
||
|
|
.ADC_current[1].offset = (-1167861000601),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1465978571,
|
||
|
|
.ADC_current[2].offset = (-23825645915885),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30743223484,
|
||
|
|
.ADC_current[3].offset = (-499624375501648),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10525487),
|
||
|
|
.Usercode2DAC[0].offset = 582284532159,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178406684),
|
||
|
|
.Usercode2DAC[1].offset = 4779968229015,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6252770),
|
||
|
|
.ADC_Vout_volt[0].offset = 101261299710,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_E7_0C
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6263,
|
||
|
|
.ADC_volt[0].offset = (-102093030),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214898,
|
||
|
|
.ADC_volt[1].offset = (-3510610567),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6261109,
|
||
|
|
.ADC_volt[2].offset = (-102261050423),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3125756,
|
||
|
|
.ADC_current[0].offset = (-50986790575),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71693413,
|
||
|
|
.ADC_current[1].offset = (-1169542168019),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1454799472,
|
||
|
|
.ADC_current[2].offset = (-23730446696872),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30530291704,
|
||
|
|
.ADC_current[3].offset = (-497962597424862),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10571723),
|
||
|
|
.Usercode2DAC[0].offset = 584112527519,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178849708),
|
||
|
|
.Usercode2DAC[1].offset = 4791693189057,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6322402),
|
||
|
|
.ADC_Vout_volt[0].offset = 102817715147,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_E7_6E
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6277,
|
||
|
|
.ADC_volt[0].offset = (-102466524),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214913,
|
||
|
|
.ADC_volt[1].offset = (-3507606740),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6279524,
|
||
|
|
.ADC_volt[2].offset = (-102462338864),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3125549,
|
||
|
|
.ADC_current[0].offset = (-51035357119),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71714716,
|
||
|
|
.ADC_current[1].offset = (-1171091704065),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457590075,
|
||
|
|
.ADC_current[2].offset = (-23801027127640),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30654073289,
|
||
|
|
.ADC_current[3].offset = (-500542906897497),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10474179),
|
||
|
|
.Usercode2DAC[0].offset = 581907742767,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178480668),
|
||
|
|
.Usercode2DAC[1].offset = 4782703438571,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6236955),
|
||
|
|
.ADC_Vout_volt[0].offset = 102551471489,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_1
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6315,
|
||
|
|
.ADC_volt[0].offset = (-102711392),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215744,
|
||
|
|
.ADC_volt[1].offset = (-3511140019),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6308429,
|
||
|
|
.ADC_volt[2].offset = (-102635617764),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3156315,
|
||
|
|
.ADC_current[0].offset = (-51438344681),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72304608,
|
||
|
|
.ADC_current[1].offset = (-1178438121249),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1464191587,
|
||
|
|
.ADC_current[2].offset = (-23862163505975),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30888240646,
|
||
|
|
.ADC_current[3].offset = (-503408729801573),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10538401),
|
||
|
|
.Usercode2DAC[0].offset = 583999264775,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177550021),
|
||
|
|
.Usercode2DAC[1].offset = 4759896184151,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6243651),
|
||
|
|
.ADC_Vout_volt[0].offset = 102210944196,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_2
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6230,
|
||
|
|
.ADC_volt[0].offset = (-101437544),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 213934,
|
||
|
|
.ADC_volt[1].offset = (-3484584765),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6246732,
|
||
|
|
.ADC_volt[2].offset = (-101725090674),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3112908,
|
||
|
|
.ADC_current[0].offset = (-50655254352),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71720599,
|
||
|
|
.ADC_current[1].offset = (-1167260727022),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1453192668,
|
||
|
|
.ADC_current[2].offset = (-23648559112492),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30628424312,
|
||
|
|
.ADC_current[3].offset = (-498473690168297),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10541755),
|
||
|
|
.Usercode2DAC[0].offset = 582943515821,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178547678),
|
||
|
|
.Usercode2DAC[1].offset = 4783742988037,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6261279),
|
||
|
|
.ADC_Vout_volt[0].offset = 102062559721,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_3
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6236,
|
||
|
|
.ADC_volt[0].offset = (-101977930),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214184,
|
||
|
|
.ADC_volt[1].offset = (-3504302130),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6258984,
|
||
|
|
.ADC_volt[2].offset = (-102380376995),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3136364,
|
||
|
|
.ADC_current[0].offset = (-51288287955),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71918707,
|
||
|
|
.ADC_current[1].offset = (-1176184078471),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1466401905,
|
||
|
|
.ADC_current[2].offset = (-23980306007815),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30844686946,
|
||
|
|
.ADC_current[3].offset = (-504389028891422),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10529555),
|
||
|
|
.Usercode2DAC[0].offset = 584423538689,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178476766),
|
||
|
|
.Usercode2DAC[1].offset = 4783733758927,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6257475),
|
||
|
|
.ADC_Vout_volt[0].offset = 102368973348,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_4
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6264,
|
||
|
|
.ADC_volt[0].offset = (-101888918),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214563,
|
||
|
|
.ADC_volt[1].offset = (-3486843823),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6272056,
|
||
|
|
.ADC_volt[2].offset = (-101898197885),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3122581,
|
||
|
|
.ADC_current[0].offset = (-50990772435),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71783278,
|
||
|
|
.ADC_current[1].offset = (-1172259135178),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1458649016,
|
||
|
|
.ADC_current[2].offset = (-23817223539623),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30694489296,
|
||
|
|
.ADC_current[3].offset = (-501242075218683),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10497415),
|
||
|
|
.Usercode2DAC[0].offset = 581646261432,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178244717),
|
||
|
|
.Usercode2DAC[1].offset = 4775970686085,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6227575),
|
||
|
|
.ADC_Vout_volt[0].offset = 101920220287,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_5
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6237,
|
||
|
|
.ADC_volt[0].offset = (-101855130),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 213703,
|
||
|
|
.ADC_volt[1].offset = (-3491189842),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6244405,
|
||
|
|
.ADC_volt[2].offset = (-101986129186),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3130068,
|
||
|
|
.ADC_current[0].offset = (-50984593111),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72080835,
|
||
|
|
.ADC_current[1].offset = (-1174200131726),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457082070,
|
||
|
|
.ADC_current[2].offset = (-23733331223750),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30696257882,
|
||
|
|
.ADC_current[3].offset = (-500026090255991),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10534133),
|
||
|
|
.Usercode2DAC[0].offset = 581929808996,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178323512),
|
||
|
|
.Usercode2DAC[1].offset = 4777303676874,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6258567),
|
||
|
|
.ADC_Vout_volt[0].offset = 101427042471,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_6
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6313,
|
||
|
|
.ADC_volt[0].offset = (-102797766),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216580,
|
||
|
|
.ADC_volt[1].offset = (-3528929783),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6320430,
|
||
|
|
.ADC_volt[2].offset = (-102965476465),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3107357,
|
||
|
|
.ADC_current[0].offset = (-50583555853),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71314255,
|
||
|
|
.ADC_current[1].offset = (-1160993950796),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1447582803,
|
||
|
|
.ADC_current[2].offset = (-23564917012505),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30569895236,
|
||
|
|
.ADC_current[3].offset = (-497665095915136),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10579871),
|
||
|
|
.Usercode2DAC[0].offset = 586502855315,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178895152),
|
||
|
|
.Usercode2DAC[1].offset = 4795005362039,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6273016),
|
||
|
|
.ADC_Vout_volt[0].offset = 102363252317,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_7
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6261,
|
||
|
|
.ADC_volt[0].offset = (-101829392),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216264,
|
||
|
|
.ADC_volt[1].offset = (-3516891018),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6303328,
|
||
|
|
.ADC_volt[2].offset = (-102474893054),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3116515,
|
||
|
|
.ADC_current[0].offset = (-50706637833),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71754936,
|
||
|
|
.ADC_current[1].offset = (-1167563957189),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1455534427,
|
||
|
|
.ADC_current[2].offset = (-23681827162816),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30714861578,
|
||
|
|
.ADC_current[3].offset = (-499791620533034),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10523335),
|
||
|
|
.Usercode2DAC[0].offset = 582979514455,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178902791),
|
||
|
|
.Usercode2DAC[1].offset = 4793071084176,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6237351),
|
||
|
|
.ADC_Vout_volt[0].offset = 101984862423,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_8
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6263,
|
||
|
|
.ADC_volt[0].offset = (-101682131),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215329,
|
||
|
|
.ADC_volt[1].offset = (-3498402458),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6269445,
|
||
|
|
.ADC_volt[2].offset = (-101833589970),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3131643,
|
||
|
|
.ADC_current[0].offset = (-50940975097),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71884258,
|
||
|
|
.ADC_current[1].offset = (-1169236286490),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1455983505,
|
||
|
|
.ADC_current[2].offset = (-23681166075995),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30733849637,
|
||
|
|
.ADC_current[3].offset = (-499848813950696),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10529784),
|
||
|
|
.Usercode2DAC[0].offset = 582486528189,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179068703),
|
||
|
|
.Usercode2DAC[1].offset = 4796606756196,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6285173),
|
||
|
|
.ADC_Vout_volt[0].offset = 102222446826,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_9
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6267,
|
||
|
|
.ADC_volt[0].offset = (-102028002),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215634,
|
||
|
|
.ADC_volt[1].offset = (-3517189151),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6281201,
|
||
|
|
.ADC_volt[2].offset = (-102431111612),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3117736,
|
||
|
|
.ADC_current[0].offset = (-50837353744),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71655674,
|
||
|
|
.ADC_current[1].offset = (-1168489519122),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1454231926,
|
||
|
|
.ADC_current[2].offset = (-23713068124450),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30667117763,
|
||
|
|
.ADC_current[3].offset = (-500020256785398),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10547916),
|
||
|
|
.Usercode2DAC[0].offset = 583186274643,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179389854),
|
||
|
|
.Usercode2DAC[1].offset = 4804853449970,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6244452),
|
||
|
|
.ADC_Vout_volt[0].offset = 102103245637,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_10
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6266,
|
||
|
|
.ADC_volt[0].offset = (-102510450),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215104,
|
||
|
|
.ADC_volt[1].offset = (-3516281969),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6263495,
|
||
|
|
.ADC_volt[2].offset = (-102366794643),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3134531,
|
||
|
|
.ADC_current[0].offset = (-51203208091),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71817037,
|
||
|
|
.ADC_current[1].offset = (-1173217647997),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462086757,
|
||
|
|
.ADC_current[2].offset = (-23883222331602),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30700669121,
|
||
|
|
.ADC_current[3].offset = (-501453504657573),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10544373),
|
||
|
|
.Usercode2DAC[0].offset = 584350176185,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178475043),
|
||
|
|
.Usercode2DAC[1].offset = 4783237161078,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6261766),
|
||
|
|
.ADC_Vout_volt[0].offset = 101995687562,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_11
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6271,
|
||
|
|
.ADC_volt[0].offset = (-101634397),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215437,
|
||
|
|
.ADC_volt[1].offset = (-3491402418),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6274038,
|
||
|
|
.ADC_volt[2].offset = (-101654277903),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3117355,
|
||
|
|
.ADC_current[0].offset = (-50497924237),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71774648,
|
||
|
|
.ADC_current[1].offset = (-1162852302911),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1452664130,
|
||
|
|
.ADC_current[2].offset = (-23532284128026),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30668623144,
|
||
|
|
.ADC_current[3].offset = (-496799430136624),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10573209),
|
||
|
|
.Usercode2DAC[0].offset = 582781434937,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179369334),
|
||
|
|
.Usercode2DAC[1].offset = 4803319819942,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6260515),
|
||
|
|
.ADC_Vout_volt[0].offset = 101238248026,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_12
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6279,
|
||
|
|
.ADC_volt[0].offset = (-102038347),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215399,
|
||
|
|
.ADC_volt[1].offset = (-3499372419),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6271256,
|
||
|
|
.ADC_volt[2].offset = (-101854059267),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3127579,
|
||
|
|
.ADC_current[0].offset = (-50976515534),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71810250,
|
||
|
|
.ADC_current[1].offset = (-1170512309345),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459326140,
|
||
|
|
.ADC_current[2].offset = (-23785128070449),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30698357437,
|
||
|
|
.ADC_current[3].offset = (-500364793529135),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10515092),
|
||
|
|
.Usercode2DAC[0].offset = 583551823033,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178895889),
|
||
|
|
.Usercode2DAC[1].offset = 4793704222970,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6264947),
|
||
|
|
.ADC_Vout_volt[0].offset = 101871189432,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_13
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6267,
|
||
|
|
.ADC_volt[0].offset = (-101500321),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214738,
|
||
|
|
.ADC_volt[1].offset = (-3479346399),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6266076,
|
||
|
|
.ADC_volt[2].offset = (-101495271507),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3131355,
|
||
|
|
.ADC_current[0].offset = (-50776447942),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71941999,
|
||
|
|
.ADC_current[1].offset = (-1166670778645),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459861085,
|
||
|
|
.ADC_current[2].offset = (-23672231221240),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30713643316,
|
||
|
|
.ADC_current[3].offset = (-498023476090336),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10534478),
|
||
|
|
.Usercode2DAC[0].offset = 581065668584,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177995981),
|
||
|
|
.Usercode2DAC[1].offset = 4768228482663,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6242146),
|
||
|
|
.ADC_Vout_volt[0].offset = 101296652593,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_14
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6233,
|
||
|
|
.ADC_volt[0].offset = (-101600596),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214213,
|
||
|
|
.ADC_volt[1].offset = (-3492067604),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6231071,
|
||
|
|
.ADC_volt[2].offset = (-101547302286),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3127494,
|
||
|
|
.ADC_current[0].offset = (-50791776302),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71436522,
|
||
|
|
.ADC_current[1].offset = (-1160264778964),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1454999583,
|
||
|
|
.ADC_current[2].offset = (-23631081707179),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30734513992,
|
||
|
|
.ADC_current[3].offset = (-499174754129614),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10524578),
|
||
|
|
.Usercode2DAC[0].offset = 580685281839,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178938545),
|
||
|
|
.Usercode2DAC[1].offset = 4791672708498,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6290289),
|
||
|
|
.ADC_Vout_volt[0].offset = 101948252657,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_15
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6278,
|
||
|
|
.ADC_volt[0].offset = (-102374780),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215578,
|
||
|
|
.ADC_volt[1].offset = (-3514021066),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6277736,
|
||
|
|
.ADC_volt[2].offset = (-102314560841),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3121442,
|
||
|
|
.ADC_current[0].offset = (-50925291177),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71617588,
|
||
|
|
.ADC_current[1].offset = (-1168563472647),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1456095704,
|
||
|
|
.ADC_current[2].offset = (-23757431937207),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30728459175,
|
||
|
|
.ADC_current[3].offset = (-501347924376505),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10523008),
|
||
|
|
.Usercode2DAC[0].offset = 582337733055,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178029958),
|
||
|
|
.Usercode2DAC[1].offset = 4770650014378,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6278757),
|
||
|
|
.ADC_Vout_volt[0].offset = 102372047377,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_16 // R2
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6276,
|
||
|
|
.ADC_volt[0].offset = (-102671998),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216563,
|
||
|
|
.ADC_volt[1].offset = (-3543055230),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6307068,
|
||
|
|
.ADC_volt[2].offset = (-103165069679),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3128089,
|
||
|
|
.ADC_current[0].offset = (-51016401920),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71887266,
|
||
|
|
.ADC_current[1].offset = (-1172673156926),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1458529439,
|
||
|
|
.ADC_current[2].offset = (-23791298278977),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30688895879,
|
||
|
|
.ADC_current[3].offset = (-500613041520786),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10547767),
|
||
|
|
.Usercode2DAC[0].offset = 582805793442,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177870657),
|
||
|
|
.Usercode2DAC[1].offset = 4766517514398,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6223522),
|
||
|
|
.ADC_Vout_volt[0].offset = 101414758679,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_17 // R2
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6281,
|
||
|
|
.ADC_volt[0].offset = (-102091135),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215489,
|
||
|
|
.ADC_volt[1].offset = (-3502773449),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6284799,
|
||
|
|
.ADC_volt[2].offset = (-102137567699),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3127489,
|
||
|
|
.ADC_current[0].offset = (-50929238025),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72028152,
|
||
|
|
.ADC_current[1].offset = (-1173190386421),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462120904,
|
||
|
|
.ADC_current[2].offset = (-23813658336317),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30772133023,
|
||
|
|
.ADC_current[3].offset = (-501193399098681),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10525471),
|
||
|
|
.Usercode2DAC[0].offset = 583189390824,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178502405),
|
||
|
|
.Usercode2DAC[1].offset = 4783222906500,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6246261),
|
||
|
|
.ADC_Vout_volt[0].offset = 101085080282,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_18 // R2
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6307,
|
||
|
|
.ADC_volt[0].offset = (-102227194),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216350,
|
||
|
|
.ADC_volt[1].offset = (-3510441794),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6321158,
|
||
|
|
.ADC_volt[2].offset = (-102545234591),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3127182,
|
||
|
|
.ADC_current[0].offset = (-50985551728),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71761497,
|
||
|
|
.ADC_current[1].offset = (-1170210907687),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457926498,
|
||
|
|
.ADC_current[2].offset = (-23773550048662),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30730387774,
|
||
|
|
.ADC_current[3].offset = (-501134113778611),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10542537),
|
||
|
|
.Usercode2DAC[0].offset = 582354584774,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178433148),
|
||
|
|
.Usercode2DAC[1].offset = 4780251590552,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6245655),
|
||
|
|
.ADC_Vout_volt[0].offset = 101405660400,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_19 // R2
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6248,
|
||
|
|
.ADC_volt[0].offset = (-101988256),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215428,
|
||
|
|
.ADC_volt[1].offset = (-3518184654),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6267624,
|
||
|
|
.ADC_volt[2].offset = (-102333798553),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3132332,
|
||
|
|
.ADC_current[0].offset = (-50985538056),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71555053,
|
||
|
|
.ADC_current[1].offset = (-1165030559094),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1464565286,
|
||
|
|
.ADC_current[2].offset = (-23841501204443),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30827554942,
|
||
|
|
.ADC_current[3].offset = (-501862954230438),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10508759),
|
||
|
|
.Usercode2DAC[0].offset = 581937735033,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178323180),
|
||
|
|
.Usercode2DAC[1].offset = 4777879424722,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6212067),
|
||
|
|
.ADC_Vout_volt[0].offset = 101533593863,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_20 // R2
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6223,
|
||
|
|
.ADC_volt[0].offset = (-100772846),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214243,
|
||
|
|
.ADC_volt[1].offset = (-3474181335),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6249611,
|
||
|
|
.ADC_volt[2].offset = (-101316282249),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3120936,
|
||
|
|
.ADC_current[0].offset = (-50668228961),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71902191,
|
||
|
|
.ADC_current[1].offset = (-1167587543417),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457439423,
|
||
|
|
.ADC_current[2].offset = (-23664301410063),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30697477675,
|
||
|
|
.ADC_current[3].offset = (-498485527107672),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10506483),
|
||
|
|
.Usercode2DAC[0].offset = 579666250198,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178136809),
|
||
|
|
.Usercode2DAC[1].offset = 4771066521917,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6279145),
|
||
|
|
.ADC_Vout_volt[0].offset = 101443137473,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_21
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6297,
|
||
|
|
.ADC_volt[0].offset = (-102239918),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215976,
|
||
|
|
.ADC_volt[1].offset = (-3511853183),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6301113,
|
||
|
|
.ADC_volt[2].offset = (-102433011284),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3142822,
|
||
|
|
.ADC_current[0].offset = (-51073945597),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71828674,
|
||
|
|
.ADC_current[1].offset = (-1167357180875),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1464305335,
|
||
|
|
.ADC_current[2].offset = (-23796552730288),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30691748879,
|
||
|
|
.ADC_current[3].offset = (-498801800724347),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10533019),
|
||
|
|
.Usercode2DAC[0].offset = 582641154592,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178520622),
|
||
|
|
.Usercode2DAC[1].offset = 4783591915817,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6263836),
|
||
|
|
.ADC_Vout_volt[0].offset = 101716253010,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_22
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6265,
|
||
|
|
.ADC_volt[0].offset = (-102238659),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215666,
|
||
|
|
.ADC_volt[1].offset = (-3523733071),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6281019,
|
||
|
|
.ADC_volt[2].offset = (-102607574036),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3117685,
|
||
|
|
.ADC_current[0].offset = (-50891354366),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71664440,
|
||
|
|
.ADC_current[1].offset = (-1170062448388),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1453230203,
|
||
|
|
.ADC_current[2].offset = (-23727270940921),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30744385993,
|
||
|
|
.ADC_current[3].offset = (-501949279942466),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10559090),
|
||
|
|
.Usercode2DAC[0].offset = 585205338442,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178804719),
|
||
|
|
.Usercode2DAC[1].offset = 4791979065499,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6264062),
|
||
|
|
.ADC_Vout_volt[0].offset = 102147147764,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_23
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6246,
|
||
|
|
.ADC_volt[0].offset = (-101834271),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214817,
|
||
|
|
.ADC_volt[1].offset = (-3504630035),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6242155,
|
||
|
|
.ADC_volt[2].offset = (-101815366298),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3117784,
|
||
|
|
.ADC_current[0].offset = (-50723747715),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71786481,
|
||
|
|
.ADC_current[1].offset = (-1168005098689),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1456687834,
|
||
|
|
.ADC_current[2].offset = (-23695941580383),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30751319703,
|
||
|
|
.ADC_current[3].offset = (-500307035913259),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10559652),
|
||
|
|
.Usercode2DAC[0].offset = 585312217983,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178702823),
|
||
|
|
.Usercode2DAC[1].offset = 4789521529638,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6246051),
|
||
|
|
.ADC_Vout_volt[0].offset = 101364913234,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_24
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6269,
|
||
|
|
.ADC_volt[0].offset = (-102371985),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215426,
|
||
|
|
.ADC_volt[1].offset = (-3519852615),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6289743,
|
||
|
|
.ADC_volt[2].offset = (-102741632981),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3123620,
|
||
|
|
.ADC_current[0].offset = (-50878963042),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71897961,
|
||
|
|
.ADC_current[1].offset = (-1171173265898),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1458335466,
|
||
|
|
.ADC_current[2].offset = (-23755136584192),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30754197788,
|
||
|
|
.ADC_current[3].offset = (-500955744139560),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10531965),
|
||
|
|
.Usercode2DAC[0].offset = 583045401341,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178973598),
|
||
|
|
.Usercode2DAC[1].offset = 4794616083098,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6247139),
|
||
|
|
.ADC_Vout_volt[0].offset = 102266969798,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_25
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6259,
|
||
|
|
.ADC_volt[0].offset = (-100906460),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215387,
|
||
|
|
.ADC_volt[1].offset = (-3477115000),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6280117,
|
||
|
|
.ADC_volt[2].offset = (-101367770021),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3142737,
|
||
|
|
.ADC_current[0].offset = (-50912916739),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71830513,
|
||
|
|
.ADC_current[1].offset = (-1163727489761),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459146639,
|
||
|
|
.ADC_current[2].offset = (-23637891932849),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30737911805,
|
||
|
|
.ADC_current[3].offset = (-497956559680527),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10538107),
|
||
|
|
.Usercode2DAC[0].offset = 581974515579,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179241918),
|
||
|
|
.Usercode2DAC[1].offset = 4800217823823,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6252217),
|
||
|
|
.ADC_Vout_volt[0].offset = 100459702001,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_26
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6271,
|
||
|
|
.ADC_volt[0].offset = (-102212976),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215307,
|
||
|
|
.ADC_volt[1].offset = (-3508534812),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6259217,
|
||
|
|
.ADC_volt[2].offset = (-101975646807),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3117078,
|
||
|
|
.ADC_current[0].offset = (-50763039812),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71606560,
|
||
|
|
.ADC_current[1].offset = (-1166202042177),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1454618433,
|
||
|
|
.ADC_current[2].offset = (-23688587866431),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30575482137,
|
||
|
|
.ADC_current[3].offset = (-497947921109186),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10517147),
|
||
|
|
.Usercode2DAC[0].offset = 581355114556,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178259895),
|
||
|
|
.Usercode2DAC[1].offset = 4775537428945,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6239667),
|
||
|
|
.ADC_Vout_volt[0].offset = 101618247506,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_27
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6280,
|
||
|
|
.ADC_volt[0].offset = (-102420482),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215531,
|
||
|
|
.ADC_volt[1].offset = (-3514073301),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6278633,
|
||
|
|
.ADC_volt[2].offset = (-102342343153),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3124523,
|
||
|
|
.ADC_current[0].offset = (-50857660549),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71611024,
|
||
|
|
.ADC_current[1].offset = (-1165596393940),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1456815320,
|
||
|
|
.ADC_current[2].offset = (-23710661083268),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30535651038,
|
||
|
|
.ADC_current[3].offset = (-497004648381251),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10581655),
|
||
|
|
.Usercode2DAC[0].offset = 583870065329,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178861456),
|
||
|
|
.Usercode2DAC[1].offset = 4791438555456,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6234702),
|
||
|
|
.ADC_Vout_volt[0].offset = 101641687363,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_28
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6323,
|
||
|
|
.ADC_volt[0].offset = (-102642791),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216810,
|
||
|
|
.ADC_volt[1].offset = (-3517634300),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6316545,
|
||
|
|
.ADC_volt[2].offset = (-102455301502),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3115138,
|
||
|
|
.ADC_current[0].offset = (-50604325502),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71803482,
|
||
|
|
.ADC_current[1].offset = (-1166497894902),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1454907213,
|
||
|
|
.ADC_current[2].offset = (-23634072061022),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30500463970,
|
||
|
|
.ADC_current[3].offset = (-495479520913833),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10576656),
|
||
|
|
.Usercode2DAC[0].offset = 583571679995,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178051142),
|
||
|
|
.Usercode2DAC[1].offset = 4771027513848,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6208633),
|
||
|
|
.ADC_Vout_volt[0].offset = 101267011106,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_29
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6273,
|
||
|
|
.ADC_volt[0].offset = (-102778246),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215201,
|
||
|
|
.ADC_volt[1].offset = (-3530824456),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6265268,
|
||
|
|
.ADC_volt[2].offset = (-102774563158),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3104221,
|
||
|
|
.ADC_current[0].offset = (-50623744309),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71378018,
|
||
|
|
.ADC_current[1].offset = (-1164103109327),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1452168578,
|
||
|
|
.ADC_current[2].offset = (-23681013484180),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30433406851,
|
||
|
|
.ADC_current[3].offset = (-496330318436492),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10528279),
|
||
|
|
.Usercode2DAC[0].offset = 582340200416,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178160205),
|
||
|
|
.Usercode2DAC[1].offset = 4773766362066,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6265997),
|
||
|
|
.ADC_Vout_volt[0].offset = 102416665324,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_30
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6192,
|
||
|
|
.ADC_volt[0].offset = (-101325473),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 213222,
|
||
|
|
.ADC_volt[1].offset = (-3488594513),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6204761,
|
||
|
|
.ADC_volt[2].offset = (-101492930405),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3125901,
|
||
|
|
.ADC_current[0].offset = (-50933571693),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71688255,
|
||
|
|
.ADC_current[1].offset = (-1168127344789),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1453189223,
|
||
|
|
.ADC_current[2].offset = (-23677501714303),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30557055266,
|
||
|
|
.ADC_current[3].offset = (-497913600274073),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10508180),
|
||
|
|
.Usercode2DAC[0].offset = 580911728121,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178285026),
|
||
|
|
.Usercode2DAC[1].offset = 4775944030805,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6252740),
|
||
|
|
.ADC_Vout_volt[0].offset = 101371524241,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_31
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6274,
|
||
|
|
.ADC_volt[0].offset = (-102299525),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216012,
|
||
|
|
.ADC_volt[1].offset = (-3527719530),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6290092,
|
||
|
|
.ADC_volt[2].offset = (-102703668763),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3137730,
|
||
|
|
.ADC_current[0].offset = (-50901199477),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72061616,
|
||
|
|
.ADC_current[1].offset = (-1169077860275),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462194415,
|
||
|
|
.ADC_current[2].offset = (-23720235949804),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30666304552,
|
||
|
|
.ADC_current[3].offset = (-497505580276767),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10567174),
|
||
|
|
.Usercode2DAC[0].offset = 582656368880,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178938695),
|
||
|
|
.Usercode2DAC[1].offset = 4792602131903,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6246562),
|
||
|
|
.ADC_Vout_volt[0].offset = 101518895627,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_32
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6256,
|
||
|
|
.ADC_volt[0].offset = (-101726466),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214901,
|
||
|
|
.ADC_volt[1].offset = (-3494652239),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6265518,
|
||
|
|
.ADC_volt[2].offset = (-101860749000),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3137692,
|
||
|
|
.ADC_current[0].offset = (-51016804942),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72140042,
|
||
|
|
.ADC_current[1].offset = (-1173010857060),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1465662717,
|
||
|
|
.ADC_current[2].offset = (-23830561290533),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30764787940,
|
||
|
|
.ADC_current[3].offset = (-500226686734714),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10512090),
|
||
|
|
.Usercode2DAC[0].offset = 581678783913,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178879947),
|
||
|
|
.Usercode2DAC[1].offset = 4791503914142,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6216258),
|
||
|
|
.ADC_Vout_volt[0].offset = 101074276780,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_34
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6266,
|
||
|
|
.ADC_volt[0].offset = (-102057552),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215152,
|
||
|
|
.ADC_volt[1].offset = (-3505776556),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6247530,
|
||
|
|
.ADC_volt[2].offset = (-101774556705),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3135347,
|
||
|
|
.ADC_current[0].offset = (-51155591320),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71912282,
|
||
|
|
.ADC_current[1].offset = (-1173377232155),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1462013521,
|
||
|
|
.ADC_current[2].offset = (-23853460369807),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30861536514,
|
||
|
|
.ADC_current[3].offset = (-503541385864864),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10532286),
|
||
|
|
.Usercode2DAC[0].offset = 582670992328,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178528006),
|
||
|
|
.Usercode2DAC[1].offset = 4783212528958,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6255705),
|
||
|
|
.ADC_Vout_volt[0].offset = 102155152013,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_35
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6269,
|
||
|
|
.ADC_volt[0].offset = (-101914839),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214959,
|
||
|
|
.ADC_volt[1].offset = (-3493752987),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6267030,
|
||
|
|
.ADC_volt[2].offset = (-101834425380),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3130241,
|
||
|
|
.ADC_current[0].offset = (-50964164016),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71937210,
|
||
|
|
.ADC_current[1].offset = (-1171150188188),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459358035,
|
||
|
|
.ADC_current[2].offset = (-23759236427806),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30776937969,
|
||
|
|
.ADC_current[3].offset = (-501094608703935),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10544074),
|
||
|
|
.Usercode2DAC[0].offset = 581468789380,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178969538),
|
||
|
|
.Usercode2DAC[1].offset = 4792733838744,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6267021),
|
||
|
|
.ADC_Vout_volt[0].offset = 101843399161,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_36
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6281,
|
||
|
|
.ADC_volt[0].offset = (-102123495),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216252,
|
||
|
|
.ADC_volt[1].offset = (-3515703990),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6277260,
|
||
|
|
.ADC_volt[2].offset = (-102028401662),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3152607,
|
||
|
|
.ADC_current[0].offset = (-51487356975),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72284272,
|
||
|
|
.ADC_current[1].offset = (-1180436017406),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1467427835,
|
||
|
|
.ADC_current[2].offset = (-23962904666231),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30929911579,
|
||
|
|
.ADC_current[3].offset = (-505100448244360),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10442292),
|
||
|
|
.Usercode2DAC[0].offset = 580714146994,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177976355),
|
||
|
|
.Usercode2DAC[1].offset = 4769711791877,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6256522),
|
||
|
|
.ADC_Vout_volt[0].offset = 102072185212,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_37
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6212,
|
||
|
|
.ADC_volt[0].offset = (-101615287),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 213529,
|
||
|
|
.ADC_volt[1].offset = (-3493371893),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6236454,
|
||
|
|
.ADC_volt[2].offset = (-102005196953),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3124706,
|
||
|
|
.ADC_current[0].offset = (-50716788493),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71900140,
|
||
|
|
.ADC_current[1].offset = (-1167040468847),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1456382343,
|
||
|
|
.ADC_current[2].offset = (-23637515080284),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30751452831,
|
||
|
|
.ADC_current[3].offset = (-499127994978925),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10555418),
|
||
|
|
.Usercode2DAC[0].offset = 582941594573,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178890976),
|
||
|
|
.Usercode2DAC[1].offset = 4791943825357,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6263897),
|
||
|
|
.ADC_Vout_volt[0].offset = 101733138808,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_38
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6243,
|
||
|
|
.ADC_volt[0].offset = (-101766094),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214698,
|
||
|
|
.ADC_volt[1].offset = (-3497938802),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6251822,
|
||
|
|
.ADC_volt[2].offset = (-101828841596),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3136475,
|
||
|
|
.ADC_current[0].offset = (-50961049124),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71971124,
|
||
|
|
.ADC_current[1].offset = (-1169309879043),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1464557648,
|
||
|
|
.ADC_current[2].offset = (-23793035455836),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30802360296,
|
||
|
|
.ADC_current[3].offset = (-500429036987644),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10512228),
|
||
|
|
.Usercode2DAC[0].offset = 581455512799,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178964504),
|
||
|
|
.Usercode2DAC[1].offset = 4793390963979,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6244072),
|
||
|
|
.ADC_Vout_volt[0].offset = 101795360640,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_39
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6256,
|
||
|
|
.ADC_volt[0].offset = (-101760960),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215114,
|
||
|
|
.ADC_volt[1].offset = (-3497784640),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6269088,
|
||
|
|
.ADC_volt[2].offset = (-101909915670),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3127115,
|
||
|
|
.ADC_current[0].offset = (-51038867037),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72028439,
|
||
|
|
.ADC_current[1].offset = (-1175508696397),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459106337,
|
||
|
|
.ADC_current[2].offset = (-23811256774288),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30743910594,
|
||
|
|
.ADC_current[3].offset = (-501711816817810),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10510690),
|
||
|
|
.Usercode2DAC[0].offset = 582178407408,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178350210),
|
||
|
|
.Usercode2DAC[1].offset = 4778795974043,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6270698),
|
||
|
|
.ADC_Vout_volt[0].offset = 101963443631,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_40
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6283,
|
||
|
|
.ADC_volt[0].offset = (-101813210),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 216252,
|
||
|
|
.ADC_volt[1].offset = (-3505963394),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6308337,
|
||
|
|
.ADC_volt[2].offset = (-102247905362),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3129650,
|
||
|
|
.ADC_current[0].offset = (-50861921809),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71776770,
|
||
|
|
.ADC_current[1].offset = (-1166339056525),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1459520412,
|
||
|
|
.ADC_current[2].offset = (-23715160633416),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30732290365,
|
||
|
|
.ADC_current[3].offset = (-499378682723182),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10519491),
|
||
|
|
.Usercode2DAC[0].offset = 582197203052,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177718029),
|
||
|
|
.Usercode2DAC[1].offset = 4762788252522,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6268744),
|
||
|
|
.ADC_Vout_volt[0].offset = 101759799080,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_41
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6244,
|
||
|
|
.ADC_volt[0].offset = (-102253576),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214018,
|
||
|
|
.ADC_volt[1].offset = (-3505915766),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6254121,
|
||
|
|
.ADC_volt[2].offset = (-102420929556),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3139582,
|
||
|
|
.ADC_current[0].offset = (-51133701004),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72063506,
|
||
|
|
.ADC_current[1].offset = (-1173784726783),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1461108791,
|
||
|
|
.ADC_current[2].offset = (-23796873780370),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30855626220,
|
||
|
|
.ADC_current[3].offset = (-502598227833432),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10532936),
|
||
|
|
.Usercode2DAC[0].offset = 582615319869,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-179138726),
|
||
|
|
.Usercode2DAC[1].offset = 4798382974559,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6256961),
|
||
|
|
.ADC_Vout_volt[0].offset = 101325733855,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_42
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6278,
|
||
|
|
.ADC_volt[0].offset = (-102207172),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215743,
|
||
|
|
.ADC_volt[1].offset = (-3514456556),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6273430,
|
||
|
|
.ADC_volt[2].offset = (-102159584835),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3113388,
|
||
|
|
.ADC_current[0].offset = (-50507647663),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71558779,
|
||
|
|
.ADC_current[1].offset = (-1160965339212),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1451088806,
|
||
|
|
.ADC_current[2].offset = (-23540666487762),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30558589208,
|
||
|
|
.ADC_current[3].offset = (-495775802637916),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10499141),
|
||
|
|
.Usercode2DAC[0].offset = 578751066727,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178353892),
|
||
|
|
.Usercode2DAC[1].offset = 4775750225422,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6238607),
|
||
|
|
.ADC_Vout_volt[0].offset = 101117192079,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_43
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6250,
|
||
|
|
.ADC_volt[0].offset = (-102291513),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214672,
|
||
|
|
.ADC_volt[1].offset = (-3514057308),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6245636,
|
||
|
|
.ADC_volt[2].offset = (-102209309248),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3113096,
|
||
|
|
.ADC_current[0].offset = (-50762285039),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71563178,
|
||
|
|
.ADC_current[1].offset = (-1166968626168),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1448110865,
|
||
|
|
.ADC_current[2].offset = (-23612286687822),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30568818998,
|
||
|
|
.ADC_current[3].offset = (-498463261308120),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10566863),
|
||
|
|
.Usercode2DAC[0].offset = 585315654903,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178663759),
|
||
|
|
.Usercode2DAC[1].offset = 4788333822191,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6253999),
|
||
|
|
.ADC_Vout_volt[0].offset = 101955656639,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_44
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6267,
|
||
|
|
.ADC_volt[0].offset = (-101794237),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215098,
|
||
|
|
.ADC_volt[1].offset = (-3494829392),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6274550,
|
||
|
|
.ADC_volt[2].offset = (-101921431439),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3125636,
|
||
|
|
.ADC_current[0].offset = (-50981674664),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71870062,
|
||
|
|
.ADC_current[1].offset = (-1172278019614),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1456818793,
|
||
|
|
.ADC_current[2].offset = (-23760429701922),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30708069449,
|
||
|
|
.ADC_current[3].offset = (-500876235284472),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10519051),
|
||
|
|
.Usercode2DAC[0].offset = 582882656679,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177807426),
|
||
|
|
.Usercode2DAC[1].offset = 4765733359862,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6267014),
|
||
|
|
.ADC_Vout_volt[0].offset = 101728349335,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_45
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6262,
|
||
|
|
.ADC_volt[0].offset = (-102336148),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214912,
|
||
|
|
.ADC_volt[1].offset = (-3514677864),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6274518,
|
||
|
|
.ADC_volt[2].offset = (-102590618147),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3120609,
|
||
|
|
.ADC_current[0].offset = (-50861857629),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71546911,
|
||
|
|
.ADC_current[1].offset = (-1166244278462),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1453025486,
|
||
|
|
.ADC_current[2].offset = (-23682595476549),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30557358936,
|
||
|
|
.ADC_current[3].offset = (-498076863628904),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10522059),
|
||
|
|
.Usercode2DAC[0].offset = 580356870281,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178003119),
|
||
|
|
.Usercode2DAC[1].offset = 4768017674061,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6239102),
|
||
|
|
.ADC_Vout_volt[0].offset = 102072946150,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_46
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6240,
|
||
|
|
.ADC_volt[0].offset = (-101429565),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214648,
|
||
|
|
.ADC_volt[1].offset = (-3489358745),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6233725,
|
||
|
|
.ADC_volt[2].offset = (-101313366691),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3134885,
|
||
|
|
.ADC_current[0].offset = (-51032344188),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 72081423,
|
||
|
|
.ADC_current[1].offset = (-1173482266477),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1458718359,
|
||
|
|
.ADC_current[2].offset = (-23746778057242),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30799582693,
|
||
|
|
.ADC_current[3].offset = (-501411421709225),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10556716),
|
||
|
|
.Usercode2DAC[0].offset = 583191573940,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178131554),
|
||
|
|
.Usercode2DAC[1].offset = 4773203475326,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6241687),
|
||
|
|
.ADC_Vout_volt[0].offset = 101603926109,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_47
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6246,
|
||
|
|
.ADC_volt[0].offset = (-101394289),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214235,
|
||
|
|
.ADC_volt[1].offset = (-3479270505),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6246151,
|
||
|
|
.ADC_volt[2].offset = (-101418346461),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3122413,
|
||
|
|
.ADC_current[0].offset = (-50638123879),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71904884,
|
||
|
|
.ADC_current[1].offset = (-1166182353634),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457383174,
|
||
|
|
.ADC_current[2].offset = (-23634671156953),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30733403556,
|
||
|
|
.ADC_current[3].offset = (-498456288132256),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10543828),
|
||
|
|
.Usercode2DAC[0].offset = 582188036070,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177847864),
|
||
|
|
.Usercode2DAC[1].offset = 4765423296316,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6263029),
|
||
|
|
.ADC_Vout_volt[0].offset = 101373476197,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_48
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6256,
|
||
|
|
.ADC_volt[0].offset = (-102025693),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 215502,
|
||
|
|
.ADC_volt[1].offset = (-3514964112),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6279573,
|
||
|
|
.ADC_volt[2].offset = (-102398647768),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3126052,
|
||
|
|
.ADC_current[0].offset = (-51036853594),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71858165,
|
||
|
|
.ADC_current[1].offset = (-1173243572914),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1457799767,
|
||
|
|
.ADC_current[2].offset = (-23800238872475),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30781552936,
|
||
|
|
.ADC_current[3].offset = (-502562350610130),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10520902),
|
||
|
|
.Usercode2DAC[0].offset = 582105276838,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178616121),
|
||
|
|
.Usercode2DAC[1].offset = 4785133164166,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6196468),
|
||
|
|
.ADC_Vout_volt[0].offset = 101323723645,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_49
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6229,
|
||
|
|
.ADC_volt[0].offset = (-101131838),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 214279,
|
||
|
|
.ADC_volt[1].offset = (-3476600734),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6239407,
|
||
|
|
.ADC_volt[2].offset = (-101205739459),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3139647,
|
||
|
|
.ADC_current[0].offset = (-51021027658),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71852207,
|
||
|
|
.ADC_current[1].offset = (-1167731595516),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1460638308,
|
||
|
|
.ADC_current[2].offset = (-23737015073754),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30683667806,
|
||
|
|
.ADC_current[3].offset = (-498642016708658),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10533740),
|
||
|
|
.Usercode2DAC[0].offset = 582156656300,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-177851244),
|
||
|
|
.Usercode2DAC[1].offset = 4765718213782,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6256139),
|
||
|
|
.ADC_Vout_volt[0].offset = 101469741241,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef BOARD_50
|
||
|
|
struct correction_ctx_t Correction = {
|
||
|
|
.ADC_volt[0].coeff = 6255,
|
||
|
|
.ADC_volt[0].offset = (-102006975),
|
||
|
|
|
||
|
|
.ADC_volt[1].coeff = 213749,
|
||
|
|
.ADC_volt[1].offset = (-3485511071),
|
||
|
|
|
||
|
|
.ADC_volt[2].coeff = 6243279,
|
||
|
|
.ADC_volt[2].offset = (-101778902452),
|
||
|
|
|
||
|
|
.ADC_current[0].coeff = 3121428,
|
||
|
|
.ADC_current[0].offset = (-50928971575),
|
||
|
|
|
||
|
|
.ADC_current[1].coeff = 71691861,
|
||
|
|
.ADC_current[1].offset = (-1169757063049),
|
||
|
|
|
||
|
|
.ADC_current[2].coeff = 1454992673,
|
||
|
|
.ADC_current[2].offset = (-23738737332342),
|
||
|
|
|
||
|
|
.ADC_current[3].coeff = 30685141165,
|
||
|
|
.ADC_current[3].offset = (-500673286090517),
|
||
|
|
|
||
|
|
.Usercode2DAC[0].coeff = (-10525870),
|
||
|
|
.Usercode2DAC[0].offset = 582549889797,
|
||
|
|
|
||
|
|
.Usercode2DAC[1].coeff = (-178498513),
|
||
|
|
.Usercode2DAC[1].offset = 4782490930218,
|
||
|
|
|
||
|
|
.ADC_Vout_volt[0].coeff = (-6283517),
|
||
|
|
.ADC_Vout_volt[0].offset = 102382727839,
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
static int32_t DecodeADCVolt(uint8_t adc_gain, uint16_t adc_measure)
|
||
|
|
{
|
||
|
|
uint8_t gain = adc_gain;
|
||
|
|
uint16_t raw = adc_measure;
|
||
|
|
long long vin_volt = 0;
|
||
|
|
|
||
|
|
/*
|
||
|
|
* this function turn ADC measure value (0xXXXX) into real Vin voltage
|
||
|
|
* unit should be uV
|
||
|
|
*/
|
||
|
|
|
||
|
|
vin_volt = (Correction.ADC_volt[gain].coeff * (long long)raw + Correction.ADC_volt[gain].offset) / 1e4;
|
||
|
|
|
||
|
|
return (int32_t)(vin_volt);
|
||
|
|
}
|
||
|
|
|
||
|
|
static int32_t DecodeADCVoutVolt(uint16_t adc_measure)
|
||
|
|
{
|
||
|
|
uint16_t raw = adc_measure;
|
||
|
|
long long vout_volt = 0;
|
||
|
|
|
||
|
|
/*
|
||
|
|
* this function turn ADC measure value (0xXXXX) into real Vout voltage
|
||
|
|
* unit should be uV
|
||
|
|
*/
|
||
|
|
|
||
|
|
vout_volt = (Correction.ADC_Vout_volt[0].coeff * (long long)raw + Correction.ADC_Vout_volt[0].offset) / 1e4;
|
||
|
|
|
||
|
|
return (int32_t)(vout_volt);
|
||
|
|
}
|
||
|
|
|
||
|
|
static int32_t DecodeADCBatVolt(uint16_t adc_measure)
|
||
|
|
{
|
||
|
|
uint16_t raw = adc_measure;
|
||
|
|
long long bat_volt = 0;
|
||
|
|
|
||
|
|
/*
|
||
|
|
* this function turn ADC measure value (0xXXXX) into real battery voltage
|
||
|
|
* unit should be mV
|
||
|
|
*/
|
||
|
|
|
||
|
|
bat_volt = (47362594 * (long long)raw + 290422184577) / 1e8;
|
||
|
|
|
||
|
|
return (int32_t)(bat_volt);
|
||
|
|
}
|
||
|
|
|
||
|
|
static int32_t DecodeADCCurrent(uint8_t adc_gain, uint16_t adc_measure)
|
||
|
|
{
|
||
|
|
uint8_t gain = adc_gain;
|
||
|
|
uint16_t raw = adc_measure;
|
||
|
|
long long curr = 0;
|
||
|
|
|
||
|
|
/*
|
||
|
|
* this function turn ADC measure value (0xXXXX) into real current
|
||
|
|
* unit should be nA
|
||
|
|
*/
|
||
|
|
|
||
|
|
curr = (Correction.ADC_current[gain].coeff * (long long)raw + Correction.ADC_current[gain].offset) / 1e7;
|
||
|
|
|
||
|
|
return (int32_t)(curr);
|
||
|
|
}
|
||
|
|
|
||
|
|
int32_t DecodeADCValue(uint8_t adc_gain, uint8_t adc_channel, uint16_t adc_rxbuf)
|
||
|
|
{
|
||
|
|
uint8_t gain = adc_gain;
|
||
|
|
uint8_t ch = adc_channel;
|
||
|
|
uint16_t adc_16b_measure = adc_rxbuf;
|
||
|
|
int32_t ret = 0;
|
||
|
|
|
||
|
|
/*
|
||
|
|
* Decode ADC measure value
|
||
|
|
* if channel == RIS_ADC_VIN: return real Vin volt
|
||
|
|
* if channel == RIS_ADC_IIN: return real current
|
||
|
|
* if channel == RIS_ADC_VIN: return real Vout Volt
|
||
|
|
* if channel == RIS_ADC_VIN: return real battery volt
|
||
|
|
*/
|
||
|
|
|
||
|
|
if (ch == RIS_ADC_VIN)
|
||
|
|
{
|
||
|
|
return DecodeADCVolt(gain, adc_16b_measure);
|
||
|
|
}
|
||
|
|
|
||
|
|
else if (ch == RIS_ADC_IIN)
|
||
|
|
{
|
||
|
|
return DecodeADCCurrent(gain, adc_16b_measure);
|
||
|
|
}
|
||
|
|
|
||
|
|
else if (ch == RIS_ADC_VOUT)
|
||
|
|
{
|
||
|
|
return DecodeADCVoutVolt(adc_16b_measure);
|
||
|
|
}
|
||
|
|
|
||
|
|
else if (ch == RIS_ADC_BAT)
|
||
|
|
{
|
||
|
|
return DecodeADCBatVolt(adc_16b_measure);
|
||
|
|
}
|
||
|
|
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
|
||
|
|
uint16_t Usercode_Correction_to_DAC(uint8_t dac_gain, uint16_t usercode)
|
||
|
|
{
|
||
|
|
uint8_t gain = dac_gain;
|
||
|
|
uint16_t uc = usercode;
|
||
|
|
long long dac_code = 0;
|
||
|
|
|
||
|
|
/*
|
||
|
|
* User will enter -5V~+5V in UI.
|
||
|
|
* websever and controler use 0~50000 represent -5~+5V
|
||
|
|
* this function should turn 0~50000 into DACcode which output the exactly voltage user want
|
||
|
|
*/
|
||
|
|
|
||
|
|
dac_code = (Correction.Usercode2DAC[gain].coeff * (long long)uc + Correction.Usercode2DAC[gain].offset) / 1e7;
|
||
|
|
|
||
|
|
return (uint16_t)dac_code;
|
||
|
|
}
|