/* * Module_SmartBox.h * * Created on: 2022年5月3日 * Author: 7564 */ #ifndef MODULE_SMARTBOX_H_ #define MODULE_SMARTBOX_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /*標準輸入輸出定義*/ #include /*標準函數庫定義*/ #include /*Unix 標準函數定義*/ #include /*檔控制定義*/ #include /*PPSIX 終端控制定義*/ #include /*錯誤號定義*/ #include #include #include #include #include #include "../../define.h" #include #define ARRAY_SIZE(A) (sizeof(A) / sizeof(A[0])) #define PASS 1 #define FAIL -1 #define YES 1 #define NO 0 #define NONE_GROUP_CAN_SELECTED 255 #define NONE_RELAY_SELECTED 255 #define PSU_MIN_VOL 500 // 0.1V #define PSU_MIN_CUR 20 // 0.1A #define CAP_GAP_FETCH 30 // 0.1kw #define CAP_GAP_RELEASE 50 // 0.1kw #define STABLE_CAP_GAP 10 // 0.1kw #define SMART_MODE 1 // 0 : FCFS, 1 : Average #define LIMIT_PWR_MODULE_GAP 2 // 1A #define RELEASE_STEP_CUR_SHARE 20 // 0.1A // Fetch Loop #define PSU_TG_VOL_GAP 100 // 0.1V #define PSU_TG_CUR_GAP 50 // 0.1A // Fetch Loop End // Release Loop #define PSU_LIMIT_CUR 50 // 0.1A // Release Loop End #define FETCH_SMART_CHK_TIME 5000 // 1ms #define FETCH_FINISH_WAIT_TIME 1000 // 1ms #define RELEASE_STABLE_CHK_TIME 5000 // 1ms #define RELEASE_SMART_CHK_TIME 2000 // 1ms #define WAIT_FOR_LIMIT_STABLE 2000 // 1ms #define RELEASE_FINISH_WAIT_TIME 1000 // 1ms #endif /* MODULE_SMARTBOX_H_ */