shmMem.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef _CSU_SHARE_MEMORY_H_
  2. #define _CSU_SHARE_MEMORY_H_
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #include "../Define/define.h"
  6. //------------------------------------------------------------------------------
  7. #define ShmCsuMeterKey 2001
  8. #define ShmCommonKey 2002
  9. //------------------------------------------------------------------------------
  10. typedef struct StGunIndexInfo {
  11. volatile uint8_t AcIndex; //AC Gun Count
  12. volatile uint8_t AcGunIndex; //AC type index
  13. volatile uint8_t DcGunIndex; //DC gun Count
  14. //DC gun type index
  15. volatile uint8_t ChademoIndex;
  16. volatile uint8_t CcsIndex;
  17. volatile uint8_t GbIndex;
  18. } GunIndexInfo;
  19. //------------------------------------------------------------------------------
  20. void *GetGunIndexInfo(void);
  21. bool MappingGunChargingInfo(char *whichTask);
  22. int CreateAllCsuShareMemory(void);
  23. void ClearAllShmMemParameter(void);
  24. void InitialShareMemoryInfo(void);
  25. void SetDcChargingInfoData(uint8_t index, struct ChargingInfoData *chargingInfoIndex);
  26. void *GetDcChargingInfoData(uint8_t index);
  27. void SetAcChargingInfoData(uint8_t index, struct ChargingInfoData *chargingInfoIndex);
  28. void *GetAcChargingInfoData(uint8_t index);
  29. void *GetShmSysConfigAndInfo(void);
  30. void *GetShmSysConfigData(void);
  31. void *GetShmSysInfoData(void);
  32. void *GetShmSysWarningInfo(void);
  33. void *GetShmOCPP16Data(void);
  34. void* GetShmOCPP20Data(void);
  35. void *GetShmCHAdeMOData(void);
  36. void *GetShmGBTData(void);
  37. void *GetShmCcsData(void);
  38. void *GetShmInfoCodeData(void);
  39. void *GetShmFaultCodeData(void);
  40. void *GetShmAlarmCodeData(void);
  41. void *GetShmStatusCodeData(void);
  42. void *GetShmCsuMeterData(void);
  43. void *GetShmPsuData(void);
  44. void *GetShmPrimaryMcuData(void);
  45. void *GetShmRelayModuleData(void);
  46. void *GetShmFanModuleData(void);
  47. void *GetShmLedModuleData(void);
  48. void *GetShmCsuMeterData(void);
  49. void *GetShmDcCommonData(void);
  50. void MappingChargingInfoData(void);
  51. void *GetShmSelectGunInfo(void);
  52. int InitSelectGunShmMem(void);
  53. #endif /* _CSU_SHARE_MEMORY_H_ */