EXTIInit.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* -------------------------- (C) COPYRIGHT 2022 Fortiortech ShenZhen ---------------------------*/
  2. /**
  3. * @copyright (C) COPYRIGHT 2022 Fortiortech Shenzhen
  4. * @file LED.c
  5. * @author Fortiortech Appliction Team
  6. * @since Create:2022-07-14
  7. * @date Last modify:2022-07-14
  8. * @note Last modify author is Leo.li
  9. * @brief
  10. */
  11. /* Define to prevent recursive inclusion --------------------------------------------------------*/
  12. #ifndef __EXTIINIT_H_
  13. #define __EXTIINIT_H_
  14. typedef struct
  15. {
  16. uint8 ScrOnAngleTimeDatum; //期望给定 导通延迟时间 单位为 1/载波频率
  17. uint8 ScrOnAngleTime; //实际给定 导通延迟时间 单位为 1/载波频率
  18. uint8 ScrOnPeriod; //控制周期
  19. uint16 Temperature; //温度值
  20. uint16 TemperatureDatum[3]; //温度期望值
  21. uint16 TPCtrlDealy; // 发热丝导通延时计数
  22. uint8 ScrOnZeroFlag; //控制周期
  23. uint16 ScrOnZeroCnt;
  24. } USER_TYPEDEF;
  25. /* Exported variables ---------------------------------------------------------------------------*/
  26. extern USER_TYPEDEF User;
  27. /* Exported functions ---------------------------------------------------------------------------*/
  28. extern void ZeroCrossing_Init(void);
  29. #endif