123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- typedef struct Verion
- {
- char Version_FW[32];
- char Version_HW[32];
- }Ver;
- typedef struct PRESENTINPUTVOLTAGE
- {
- unsigned char inputType;
- double L1N_L12;
- double L2N_L23;
- double L3N_L31;
- }PresentInputVoltage;
- typedef struct PRESENTOUTPUTVOLTAGE
- {
- double behindFuse_Voltage_C1;
- double behindRelay_Voltage_C1;
- double behindFuse_Voltage_C2;
- double behindRelay_Voltage_C2;
- }PresentOutputVoltage;
- typedef struct FANSPEED
- {
- unsigned short int speed[4];
- }FanSpeed;
- typedef struct TEMPERATURE
- {
- unsigned char point[8];
- }Temperature;
- typedef struct AUXPOWER
- {
- unsigned char voltage[8];
- }AuxPower;
- typedef struct RELAY
- {
- unsigned char relay_status[2][8];
- }Relay;
- typedef struct GFD
- {
- unsigned short int adc_value_positive[2];
- unsigned short int adc_value_negative[2];
- }Gfd;
- typedef struct GPIO_IN
- {
- unsigned char AC_Connector;
- unsigned char AC_MainBreaker;
- unsigned char SPD;
- unsigned char Door_Open;
- unsigned char GFD[2];
- unsigned char Button[2];
- unsigned char Button_Emergency;
- }Gpio_in;
- typedef struct GPIO_OUT
- {
- unsigned char AC_Connector;
- unsigned char Button_LED[2];
- unsigned char System_LED[4];
- }Gpio_out;
- typedef struct ALARM_LOG
- {
- unsigned char logArea;
- unsigned int alarmIndex;
- unsigned char log[8];
- }Alarm_Log;
- typedef struct BLE_CONFIG_DATA
- {
- unsigned char isLogin:1;
- unsigned char isRequestStart:1;
- unsigned char isRequestStop:1;
- }Ble_Config_Data;
- typedef struct BLE_LONGIN_CENTRAL_ID
- {
- unsigned char id[32];
- }Ble_Login_Central_Id;
- typedef struct RTC
- {
- unsigned short int year;
- unsigned char month;
- unsigned char day;
- unsigned char hour;
- unsigned char min;
- unsigned char sec;
- }Rtc;
- typedef struct PRESENTOUTPUTCURRENT
- {
- double L1N_L12[2];
- double L2N_L23[2];
- double L3N_L31[2];
- }Presentoutputcurrent;
- typedef struct AC_PRIMARY_MCU
- {
- unsigned char cp_state;
- unsigned int current_limit;
- float cp_voltage_positive;
- float cp_voltage_negtive;
- unsigned char locker_state;
- unsigned char relay_state;
- unsigned char shutter_state;
- unsigned char meter_state;
- unsigned char pp_state;
- unsigned char rating_current;
- unsigned char rotatory_switch;
- Relay relayState;
- }Ac_Primary_Mcu;
- typedef struct AC_PRIMARY_MCU_ALARM
- {
- union
- {
- unsigned long InputAlarmCode;
- struct
- {
- unsigned long OVP_L1:1;
- unsigned long UVP_L1:1;
- unsigned long OCP_L1:1;
- unsigned long OTP:1;
- unsigned long gmi_fault:1;
- unsigned long cp_fault:1;
- unsigned long ac_leak:1;
- unsigned long dc_leak:1;
- unsigned long mcu_selftest_fail:1;
- unsigned long handshaking_timeout:1;
- unsigned long emergency_stop:1;
- unsigned long relay_welding:1;
- unsigned long leak_module_fail:1;
- unsigned long shutter_fault:1;
- unsigned long locker_fault:1;
- unsigned long power_drop:1;
- unsigned long rotate_switch_fault:1;
- unsigned long short_circuit_L1:1;
- unsigned long relay_drive_fault:1;
- unsigned long comm_timeout:1;
- unsigned long OVP_L2:1;
- unsigned long UVP_L2:1;
- unsigned long OCP_L2:1;
- unsigned long OVP_L3:1;
- unsigned long UVP_L3:1;
- unsigned long OCP_L3:1;
- unsigned long short_circuit_L2:1;
- unsigned long short_circuit_L3:1;
- }bits;
- };
- }Ac_Primary_Mcu_Alarm;
- typedef struct AC_PRIMARY_MCU_LED
- {
- unsigned char mode;
- unsigned long alarm_code;
- }Ac_Primary_Mcu_Led;
- typedef struct EVSE_ID
- {
- unsigned char model_name[14];
- unsigned char serial_number[12];
- }Evse_Id;
- typedef struct AC_PRIMARY_MCU_CP_PWM_DUTY
- {
- unsigned int max_current;
- }Ac_Primary_Mcu_Cp_Pwm_Duty;
- typedef struct LEGACY_REQUEST
- {
- unsigned char isLegacyRequest:1;
- uint8_t isRelayOn:1;
- }Legacy_Request;
- typedef struct POWER_CONSUMPTION
- {
- uint32_t power_consumption;
- uint32_t power_consumption_at_start;
- }Power_Consumption;
- typedef struct MCU_OP_FLAG
- {
- unsigned char isSetModePass:1;
- unsigned char isSetSerialNumberPass:1;
- unsigned char isSetModelNamePass:1;
- unsigned char isReadFwVerPass:1;
- unsigned char isMcuUpgradeReq:1;
- unsigned char isSetCpPwmDuty:1;
- }Mcu_Op_Flag;
- typedef struct SYSTEM_ALARM_CODE
- {
- unsigned long SystemAlarmCode;
- }System_Alarm_Code;
- typedef struct OTHER_ALARM_CODE
- {
- unsigned long isHandshakingTimeOut:1;
- unsigned long isDcLeakage:1;
- unsigned long isACLeakage:1;
- }Other_Alarm_Code;
- typedef struct PILOT_VOLTAGE
- {
- float PilotVoltagePositive;
- float PilotVoltageNegative;
- }Pilot_Voltage;
- typedef struct FW_UPGRADE_INFO
- {
- int fwType;
- char modelName[17];
- char location[384];
- }Fw_Upgrade_Info;
- typedef struct GUN_PLUGIN_TIMES
- {
- uint32_t GunPluginTimes;
- }Gun_Plugin_Times;
- typedef struct MCU_RESET_REQUEST
- {
- unsigned char isMcuResetRequest:1;
- }Mcu_Reset_Request;
- typedef struct TIMEOUT_SPEC
- {
- int Setting_Timeout_Spec;
- int Present_Timeout_Spec;
- }Timeout_Spec;
- typedef struct SET_BREATHE_LED_TIMING
- {
- uint16_t set_Led_Action_Connected_Fade_In;
- uint16_t set_Led_Action_Connected_Fade_Out;
- uint16_t set_Led_Action_Authed_Fade_In;
- uint16_t set_Led_Action_Authed_Fade_Out;
- uint16_t Set_Led_Action_Chaging_Fade_In;
- uint16_t set_Led_Action_Chaging_Fade_Out;
- }Set_Breathe_Led_Timing;
- typedef struct SET_LED_BRIGHTNESS
- {
- uint8_t sector_1;
- uint8_t sector_2;
- uint8_t sector_3;
- uint8_t sector_4;
- uint8_t sector_5;
- uint8_t sector_6;
- uint8_t sector_7;
- uint8_t sector_8;
- uint8_t sector_9;
- uint8_t sector_10;
- uint8_t sector_11;
- uint8_t sector_12;
- }Set_Led_Brightness;
- typedef struct CCS_INFO
- {
- uint8_t BatteryChargeType;
- uint8_t PresentMsgFlowStatus;
-
- float ConnectorTemperature1;
- float ConnectorTemperature2;
- uint16_t ChargingRemainTime;
- float TotalBatteryCapacity;
- float BatteryMaximumVoltage;
- float BatteryMaximumCurrent;
- uint8_t EVCCID[8];
- uint8_t EVSEID[40];
- uint8_t CCSLibRev[32];
- uint8_t EVSEModelName[32];
- uint32_t CSUAlarmStatusCode;
- uint16_t CCSAlarmStatusCode;
- uint8_t PaymentOption;
- float EVSEMaxCurrent;
- float EVSEMinCurrent;
- float GridVoltage[3];
- uint8_t MeterID[32];
- float MeterReadingValue;
- uint8_t EVOperation;
- uint8_t EVChargeProgress;
- uint8_t CpSetPWMDuty;
- uint8_t CpSetStateE;
- uint8_t CpPresentPWMDuty;
- uint8_t CpPresentState;
- float CpPositiveVoltage;
- float CpNegativeVoltage;
- uint32_t CcsHeartBeat;
- float EVSEPresentCurrent[3];
- float AvailableChargingPower;
- uint8_t EVSENotification;
- uint16_t ChargingPermission:1;
- uint16_t ConnectorLockerStatus:1;
-
-
- uint16_t RcdStatus:1;
- uint16_t OutputRelayStatus:1;
- uint16_t TempFlag4:1;
- uint16_t TempFlag5:1;
- uint16_t TempFlag6:1;
- uint16_t TempFlag7:1;
- uint16_t TempFlag8:1;
- uint16_t TempFlag9:1;
- uint16_t TempFlag10:1;
- uint16_t TempFlag11:1;
- uint16_t TempFlag12:1;
- uint16_t TempFlag13:1;
- uint16_t TempFlag14:1;
- uint16_t TempFlag15:1;
-
- }Ac_Ccs_Info;
- typedef struct GUN_INFO
- {
- Ver ver;
- PresentInputVoltage inputVoltage;
- Presentoutputcurrent outputCurrent;
- Temperature temperature;
- Ble_Config_Data bleConfigData;
- Ble_Login_Central_Id bleLoginCentralId;
- Rtc rtc;
- Ac_Primary_Mcu primaryMcuState;
- Ac_Primary_Mcu_Alarm primaryMcuAlarm;
- Ac_Primary_Mcu_Led primaryMcuLed;
- Mcu_Op_Flag mcuFlag;
- Power_Consumption powerConsumption;
- Legacy_Request legacyRequest;
- System_Alarm_Code systemAlarmCode;
- Ac_Primary_Mcu_Cp_Pwm_Duty primaryMcuCp_Pwn_Duty;
- Other_Alarm_Code otherAlarmCode;
- Pilot_Voltage PilotVoltage;
- Gun_Plugin_Times gunPluginTimes;
- Mcu_Reset_Request mcuResetRequest;
- Set_Breathe_Led_Timing setBreatheLedTiming;
- Set_Led_Brightness setLedBrightness;
- Ac_Ccs_Info acCcsInfo;
- uint8_t ccsHandshakeState;
- uint8_t PreviousEVChargeProgress;
- uint8_t chargingMode;
- uint16_t targetCurrent;
-
- uint16_t isAuthPassEnd:1;
- uint16_t rfidReq:1;
- uint16_t isGunPlugged:1;
- uint16_t isInitialPass:1;
- uint16_t isSetBreatheLedTiming:1;
- uint16_t isSetLedBrightness:1;
- uint16_t isUnlockerConnetor:1;
- uint16_t isOperactive:1;
- uint16_t isCCSWaitChangeDuty:1;
- uint16_t isCCSStartTransation:1;
- }Gun_Info;
- struct InternalCommAC
- {
- Ver ver;
- Evse_Id evseId;
- Gun_Info gun_info[2];
- Fw_Upgrade_Info fwUpgradeInfo;
- Timeout_Spec timeoutSpec;
-
- uint8_t gun_selectd;
- uint8_t speaker_type;
- uint8_t isSpeakerOn:1;
- uint8_t isUpdateSuccess:1;
- };
|