Pfc.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __PFC_H_
  2. #define __PFC_H_
  3. typedef struct
  4. {
  5. int16 IacOffset; // Iac的偏置电压
  6. int32 IacOffsetSum; // Iac的偏置电压总和
  7. int16 OffsetCount; // 偏置计数
  8. int8 OffsetFlag; // 偏置电压结束标志位
  9. int8 OverVoltFlag; // 过压保护标志位
  10. int16 UDCREFValue; // Udc的给定值的变量
  11. int16 UDCREF_RED; // Udc的给定值的变量
  12. int16 IACOUTMax; // Iacout的最大值
  13. int16 UDCOUTMax; // Udcout的最大值
  14. uint16 PFCKMREFValue;
  15. uint16 KmSetValue_add;
  16. uint8 KmSetValue_Slect;
  17. }PFCValue;
  18. extern uint16 xdata Power_Currt ;
  19. extern uint16 PFCoffsetflag,PFCoffset;
  20. extern uint16 PFC_UDCREF_GET;
  21. extern PFCValue PFCSet;
  22. extern void PFC_init(void);
  23. extern void PFC_start(void);
  24. extern void UdcMax_Min(void);
  25. extern void GetPFCCurrentOffset(void);
  26. extern void PFCVoltageRespone(void);
  27. extern void PFCRunResponse(void);
  28. extern void PFC_Control(void);
  29. extern void PFC_OFF_Voltage(void);
  30. extern void PFC_ONOFF(void);
  31. extern void PFC_GetPFCCurrentOffset_ONOFF(void);
  32. extern void PI_CLEAR(void);
  33. extern void PFC_main(void);
  34. extern void PFC_timer1ms(void);
  35. #endif