asj_pe_situp_warpper.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef ASJ_PE_SITUP_WARPPER
  2. #define ASJ_PE_SITUP_WARPPER
  3. #include "asj_pe_base.h"
  4. #include "PEStatus.h"
  5. #include "dl_api.h"
  6. #ifdef __cplusplus
  7. extern "C"
  8. {
  9. #endif
  10. /**
  11. * 创建实例,单例模式.
  12. * @return 实例指针
  13. */
  14. void* situp_create();
  15. /**
  16. * 对实例进行数据清零并赋值结构体中的参数
  17. * @param situp 输入参数:实例指针
  18. * @param situp_s 输入参数:页面设定的参数
  19. * @return 参考PEStatus.h中的StatusCode
  20. */
  21. int situp_examInit(void* situp, SitUp_ST situp_s);
  22. /**
  23. * 输入推理数据进行准备状态检测
  24. * @param situp 输入参数:实例指针
  25. * @param mResult 输入参数:页面设定的参数
  26. * @param prepareStatus 输出参数:根据PEStatus.h中的SitUpPrepareCode按位或运算后的返回值
  27. * @return 参考PEStatus.h中的StatusCode
  28. */
  29. int situp_processPrepare(void* situp, sampleRunJoint_RESULT_S *mResult, int *prepareStatus);
  30. /**
  31. * 输入推理数据进行考试状态检测
  32. * @param situp 输入参数:实例指针
  33. * @param mResult 输入参数:页面设定的参数
  34. * @param result 输出参数:结果结构体(包含计数结果和PEStatus.h中的SitUpExamCode按位或运算后的返回值)
  35. * @return 参考PEStatus.h中的StatusCode
  36. */
  37. int situp_processExam(void* situp, sampleRunJoint_RESULT_S *mResult, SitUpResult_ST *result);
  38. /**
  39. * Prepare enum转换char*
  40. * @param code 输入参数:枚举变量
  41. * @return 枚举变量对应的字符串
  42. */
  43. const char *SitUpPrepareCode2String(enum SitUpPrepareCode code);
  44. /**
  45. * Exam enum转换char*
  46. * @param code 输入参数:枚举变量
  47. * @return 枚举变量对应的字符串
  48. */
  49. const char *SitUpExamCode2String(enum SitUpExamCode code);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif