You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
1.0 KiB

  1. #ifndef PLSR_CORE_H
  2. #define PLSR_CORE_H
  3. #include "plsr_job.h"
  4. #include "plsr_types.h"
  5. #include <stdint.h>
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. PLSR_RESULT PlsrInit(void);
  10. void PlsrTask(void *argument);
  11. void PlsrProcess(void);
  12. PLSR_RESULT PlsrPostCall(const PLSR_CALL *call);
  13. PLSR_RESULT PlsrPostCommand(const PLSR_COMMAND *command);
  14. PLSR_RESULT PlsrPostEvent(uint8_t axis, uint32_t eventMask);
  15. PLSR_RESULT PlsrGetStatus(uint8_t axis, PLSR_STATUS *status);
  16. PLSR_RESULT PlsrGetLastParseDetail(uint8_t axis,
  17. PLSR_PARSE_DETAIL *detail);
  18. #ifdef PLSR_HOST_TEST
  19. /* 仅测试使用的低层启动入口:不解析 S0/S1/S2/D,直接申请资源进入 ACCEL。
  20. * 生产调用必须使用 PlsrPostCall()。 */
  21. PLSR_RESULT PlsrPostStart(const PLSR_START_REQUEST *request);
  22. #endif
  23. PLSR_RESULT PlsrStateTransition(uint8_t axis,
  24. PLSR_STATE target,
  25. PLSR_TRANSITION_REASON reason);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /* PLSR_CORE_H */