添加自研批检仪检测命令
This commit is contained in:
44
elec/elec_judge.h
Normal file
44
elec/elec_judge.h
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
#ifndef elec_judge_h__
|
||||
#define elec_judge_h__
|
||||
|
||||
#include "base/mycfg.h"
|
||||
#include "base/check_cfg.h"
|
||||
#include "stdint-gcc.h"
|
||||
|
||||
// 定义错误列表长度
|
||||
#define ERR_LIST_LEN 10
|
||||
|
||||
|
||||
|
||||
struct _elec_judge_def;
|
||||
typedef void (*elec_judge_fun)(struct _elec_judge_def *e,int index,uint8_t *data);
|
||||
|
||||
typedef struct _elec_judge_def{
|
||||
const scheme_def *scheme;
|
||||
uint8_t judge_fun_num;
|
||||
uint8_t judge_flag[8];
|
||||
uint8_t *exe_ack;
|
||||
uint8_t err_list[ERR_LIST_LEN];
|
||||
uint8_t marerr_list[ERR_LIST_LEN];
|
||||
uint16_t short_circuited;
|
||||
uint16_t open_circuited;
|
||||
const elec_judge_fun *judge_fun_table;
|
||||
}elec_judge_def;
|
||||
|
||||
|
||||
|
||||
|
||||
void elec_judge(const scheme_def *s,int task_num,uint8_t *exe_ack,
|
||||
uint8_t *exe_flag,uint8_t *data,uint8_t *marerr,uint8_t *suberr);
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user