瀏覽代碼

2021.03.15 / Jerry Wang

Actions:
1. Modify Module_RatingCurrent.c API name.

Files:
follow commit history.
Jerry_Wang 4 年之前
父節點
當前提交
5b10959e95
共有 2 個文件被更改,包括 7 次插入7 次删除
  1. 5 5
      EVSE/Modularization/Module_RatingCurrent.c
  2. 2 2
      EVSE/Modularization/Module_RatingCurrent.h

+ 5 - 5
EVSE/Modularization/Module_RatingCurrent.c

@@ -404,13 +404,13 @@ static int exchangePowerValue(uint8_t key)
 }
 
 /**
- * [ModuleNameParsing : Parsing Rating Current]
+ * [ModuleRatedCurrentParsing : Parsing Rating Current]
  * @param  pModuleName  [description]
  * @param  pDestStruct  [save parameter structure array]
  * @param  parsingCount [parameter structure array count, array 0, 1 for DC Gun, 2 for AC Gun]
  * @return              [return -1 is module name format non match.]
  */
-int ModuleNameParsing(char *pModuleName, void *pDestStruct, uint8_t parsingCount)
+int ModuleRatedCurrentParsing(char *pModuleName, void *pDestStruct, uint8_t parsingCount)
 {
     uint8_t gunTypeIndex = 0;
 
@@ -500,11 +500,11 @@ int ModuleNameParsing(char *pModuleName, void *pDestStruct, uint8_t parsingCount
 //------------------------------------------------------------------------------
 //Test function
 //------------------------------------------------------------------------------
-void TestParsingRatingCurrent(void)
+void TestRatedCurrentParsing(void)
 {
     GunRateCurInfo fGunRateCurInfo[3] = {0};
 
-    ModuleNameParsing("DDYC362V0UE2AD", &fGunRateCurInfo[0], sizeof(fGunRateCurInfo) / sizeof(GunRateCurInfo));
+    ModuleRatedCurrentParsing("DDYC362V0UE2AD", &fGunRateCurInfo[0], sizeof(fGunRateCurInfo) / sizeof(GunRateCurInfo));
     //log_info("%d GunType = %d, Rating current = %d, Vol = %d, Power = %d\r\n",
     //         0,
     //         fGunRateCurInfo[0].GunType,
@@ -512,5 +512,5 @@ void TestParsingRatingCurrent(void)
     //         fGunRateCurInfo[0].Voltage,
     //         fGunRateCurInfo[0].Power);
 
-    ModuleNameParsing("DSYE301E00D2PH", &fGunRateCurInfo[0], sizeof(fGunRateCurInfo) / sizeof(GunRateCurInfo));
+    ModuleRatedCurrentParsing("DSYE301E00D2PH", &fGunRateCurInfo[0], sizeof(fGunRateCurInfo) / sizeof(GunRateCurInfo));
 }

+ 2 - 2
EVSE/Modularization/Module_RatingCurrent.h

@@ -292,7 +292,7 @@ typedef struct StGunRateCurInfo {
 } GunRateCurInfo;
 
 //------------------------------------------------------------------------------
-int ModuleNameParsing(char *pModuleName, void *pDestStruct, uint8_t parsingCount);
-void TestParsingRatingCurrent(void);
+int ModuleRatedCurrentParsing(char *pModuleName, void *pDestStruct, uint8_t parsingCount);
+void TestRatedCurrentParsing(void);
 
 #endif /* _MODULE_NAME_PARSING_H_ */