12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef ASJ_PE_STANDINGJUMP_WARPPER
- #define ASJ_PE_STANDINGJUMP_WARPPER
- #include "PEStatus.h"
- #include "standingjump_dl_api.h"
- // #################################
- // ######### StandingJump Struct #########
- // #################################
- typedef struct
- {
- sampleRunJoint_POINT_S padPoint[4]; // 垫子的四个顶点(左上,右上,右下,左下)
- int padLength; // 垫子的长度(cm)
- int padWidth; // 垫子的宽度(cm)
- } StandingJump_ST;
- typedef struct
- {
- int score; // 跳远成绩(cm)
- int standingjump_illegal_flag; // 立定跳远违规状态码
- } StandingJumpResult_ST;
- /**
- * 创建实例,单例模式.
- * @return 实例指针
- */
- void* standingjump_create();
- /**
- * 对实例进行数据清零并赋值结构体中的参数
- * @param standingjump 输入参数:实例指针
- * @param standingjump_s 输入参数:页面设定的参数
- * @return 参考PEStatus.h中的StatusCode
- */
- int standingjump_examInit(void* standingjump, StandingJump_ST standingjump_s);
- /**
- * 输入推理数据进行准备状态检测
- * @param standingjump 输入参数:实例指针
- * @param mResult 输入参数:页面设定的参数
- * @param prepareStatus 输出参数:根据PEStatus.h中的StandingJumpPrepareCode按位或运算后的返回值
- * @return 参考PEStatus.h中的StatusCode
- */
- int standingjump_processPrepare(void* standingjump, sampleRunJoint_RESULT_S *mResult, int *prepareStatus);
- /**
- * 输入推理数据进行考试状态检测
- * @param situp 输入参数:实例指针
- * @param mResult 输入参数:页面设定的参数
- * @param result 输出参数:结果结构体(包含计数结果和PEStatus.h中的StandingJumpExamCode按位或运算后的返回值)
- * @return 参考PEStatus.h中的StatusCode
- */
- int standingjump_processExam(void* standingjump, sampleRunJoint_RESULT_S *mResult, StandingJumpResult_ST *result);
- /**
- * enum转换char*
- * @param code 输入参数:枚举变量
- * @return 枚举变量对应的字符串
- */
- const char *StandingJumpExamCode2String(enum StandingJumpExamCode code);
- #endif
|