Files
checker_host/elec/elec_judge.h
2023-12-19 18:14:35 +08:00

45 lines
795 B
C

#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);
int elec_extract_chip(int id);
#endif