ui_task.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. ******************************************************************************
  3. * @file ui_task.h
  4. * @author Motor Control SDK Team, ST Microelectronics
  5. * @brief Interface of user interface tasks
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under Ultimate Liberty license
  13. * SLA0044, the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * www.st.com/SLA0044
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __UITASK_H
  21. #define __UITASK_H
  22. #include "user_interface.h"
  23. #include "motor_control_protocol.h"
  24. #include "frame_communication_protocol.h"
  25. #include "usart_frame_communication_protocol.h"
  26. #include "ui_irq_handler.h"
  27. /* Exported functions --------------------------------------------------------*/
  28. void UI_TaskInit(uint32_t* pUICfg, uint8_t bMCNum, MCI_Handle_t * pMCIList[],
  29. MCT_Handle_t* pMCTList[],const char* s_fwVer);
  30. void UI_Scheduler(void);
  31. MCP_Handle_t * GetMCP(void);
  32. bool UI_IdleTimeHasElapsed(void);
  33. void UI_SetIdleTime(uint16_t SysTickCount);
  34. bool UI_SerialCommunicationTimeOutHasElapsed(void);
  35. bool UI_SerialCommunicationATRTimeHasElapsed(void);
  36. void UI_SerialCommunicationTimeOutStop(void);
  37. void UI_SerialCommunicationTimeOutStart(void);
  38. #endif /* __UITASK_H */
  39. /******************* (C) COPYRIGHT 2019 STMicroelectronics *****END OF FILE****/