App_cpld.h 755 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. ******************************************************************************
  3. * @file App_cpld.h
  4. * @brief CPLD 通信任务 (App 应用层)
  5. ******************************************************************************
  6. */
  7. #ifndef __APP_CPLD_H
  8. #define __APP_CPLD_H
  9. #include <stdint.h>
  10. #include "FreeRTOS.h"
  11. #include "task.h"
  12. extern TaskHandle_t xCPLDProcessTaskHandle;
  13. /**
  14. * @brief 创建 CPLD 通信任务
  15. * @param 无
  16. * @return 无
  17. */
  18. void App_cpld_task_create(void);
  19. /**
  20. * @brief 查询 CPLD 通讯是否存活
  21. * @note 最近 4s 内收到过任何 CPLD 有效帧 (ACK/SNAPSHOT) 视为正常
  22. * @param 无
  23. * @return 1=通讯正常, 0=未接通/失联
  24. */
  25. uint8_t App_cpld_comm_alive(void);
  26. #endif /* __APP_CPLD_H */