123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef ASJ_PE_SITUP_WARPPER
- #define ASJ_PE_SITUP_WARPPER
- #include "asj_pe_base.h"
- #include "PEStatus.h"
- #include "dl_api.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /**
- * 创建实例,单例模式.
- * @return 实例指针
- */
- void* situp_create();
- /**
- * 对实例进行数据清零并赋值结构体中的参数
- * @param situp 输入参数:实例指针
- * @param situp_s 输入参数:页面设定的参数
- * @return 参考PEStatus.h中的StatusCode
- */
- int situp_examInit(void* situp, SitUp_ST situp_s);
- /**
- * 输入推理数据进行准备状态检测
- * @param situp 输入参数:实例指针
- * @param mResult 输入参数:页面设定的参数
- * @param prepareStatus 输出参数:根据PEStatus.h中的SitUpPrepareCode按位或运算后的返回值
- * @return 参考PEStatus.h中的StatusCode
- */
- int situp_processPrepare(void* situp, sampleRunJoint_RESULT_S *mResult, int *prepareStatus);
- /**
- * 输入推理数据进行考试状态检测
- * @param situp 输入参数:实例指针
- * @param mResult 输入参数:页面设定的参数
- * @param result 输出参数:结果结构体(包含计数结果和PEStatus.h中的SitUpExamCode按位或运算后的返回值)
- * @return 参考PEStatus.h中的StatusCode
- */
- int situp_processExam(void* situp, sampleRunJoint_RESULT_S *mResult, SitUpResult_ST *result);
- /**
- * Prepare enum转换char*
- * @param code 输入参数:枚举变量
- * @return 枚举变量对应的字符串
- */
- const char *SitUpPrepareCode2String(enum SitUpPrepareCode code);
- /**
- * Exam enum转换char*
- * @param code 输入参数:枚举变量
- * @return 枚举变量对应的字符串
- */
- const char *SitUpExamCode2String(enum SitUpExamCode code);
- #ifdef __cplusplus
- }
- #endif
- #endif
|