chargeController/tools/configParameter.h

73 lines
2.3 KiB
C
Raw Normal View History

2024-12-26 03:48:54 +00:00
#ifndef CONFIG_PARAMETER_
#define CONFIG_PARAMETER_
#include "comm_types.h"
2025-01-04 09:50:05 +00:00
#define softVer "SV01_24101501"
2024-12-26 03:48:54 +00:00
// /* 第一段保护的延时时间单位100uS */
// const uint32_t firstStageProtectionDelay = 2; // 200uS
// /* 第一段保护的电流单位A */
// const float_t firstStageProtectionCurr = 50.0f;
// /* 第二段保护的延时时间单位100uS */
// const uint32_t secondStageProtectionDelay = 50000; // 5S
// /* 第二段保护的电流单位A */
// const float_t secondStageProtectionCurr = 30.0f;
// /* 第三段保护的延时时间单位100uS */
// const uint32_t thirdStageProtectionDelay = 1200000; // 120S
// /* 第三段保护的电流单位A */
// const uint32_t thirdStageProtectionCurr = 35.0f;
// /* 检测回路阻抗时的充电电流要大于该值单位A */
// const float_t checkLoopImpedanceChargCurr = 10.0f;
// /* 第三段保护的延时时间单位100uS */
// const uint32_t lowInputLoadDetectionDelay = 30; // 120S
2024-12-27 10:14:28 +00:00
// /* 第一段保护的延时时间单位100uS */
/* 第一段保护的延时时间单位10uS */
2025-01-03 09:25:26 +00:00
#define firstStageProtectionDelayMacro 2
2024-12-27 10:14:28 +00:00
// /* 第一段保护的电流单位A */
2025-01-03 09:25:26 +00:00
// #define firstStageProtectionCurr 50.0f
//#define firstStageProtectionCurr 40.0f
#define firstStageProtectionCurrMacro 45.0f
2024-12-27 10:14:28 +00:00
/* 第一段保护的电流采集的ADC的值 */
2025-01-03 09:25:26 +00:00
// #define firstStageProtectionValue 3412
//#define firstStageProtectionValue 2730
#define firstStageProtectionValueMacro 3071
2024-12-26 03:48:54 +00:00
/* 第二段保护的延时时间单位100uS */
2025-01-03 09:25:26 +00:00
#define secondStageProtectionDelayMacro 50000 // 5S
2024-12-26 03:48:54 +00:00
/* 第二段保护的电流单位A */
2025-01-03 09:25:26 +00:00
#define secondStageProtectionCurrMacro 8.0f
2024-12-26 03:48:54 +00:00
/* 第三段保护的延时时间单位100uS */
2025-01-03 09:25:26 +00:00
#define thirdStageProtectionDelayMacro 200000 // 20S
2024-12-26 03:48:54 +00:00
/* 第三段保护的电流单位A */
2025-01-03 09:25:26 +00:00
#define thirdStageProtectionCurrMacro 5.0f
2024-12-26 03:48:54 +00:00
/* 检测回路阻抗时的充电电流要大于该值单位A */
2025-01-03 09:25:26 +00:00
#define checkLoopImpedanceChargCurrMacro 5.0f
2024-12-26 03:48:54 +00:00
/* 输入功率较低延时单位100uS */
2025-01-03 09:25:26 +00:00
#define lowInputLoadDetectionDelayMacro 30 // 3ms
/* 输入功率较低延时电压单位V */
#define lowInputLoadDetectionVoltMacro 10.0f
2024-12-26 03:48:54 +00:00
2024-12-27 10:14:28 +00:00
/* 最大充电电流A */
2025-01-03 09:25:26 +00:00
#define maxChargCurrMacro 25.0f
2024-12-26 03:48:54 +00:00
2025-01-03 09:25:26 +00:00
/* 最大充电电压V */
#define maxOpenSolarOpenCircuitVMacro 25.0f
2024-12-26 03:48:54 +00:00
2025-01-04 09:50:05 +00:00
2024-12-26 03:48:54 +00:00
#endif