Files
checker_slave/source/elec_det/elec_judge.h

44 lines
711 B
C
Raw Normal View History

2023-10-30 18:38:01 +08:00
#ifndef elec_judge_h__
#define elec_judge_h__
#include "dev_flash.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];
2023-10-31 18:12:21 +08:00
uint8_t *exe_ack;
2023-10-30 18:38:01 +08:00
uint8_t err_list[ERR_LIST_LEN];
2023-10-31 18:12:21 +08:00
uint8_t marerr_list[ERR_LIST_LEN];
2023-10-30 18:38:01 +08:00
uint16_t short_circuited;
uint16_t open_circuited;
const elec_judge_fun *judge_fun_table;
}elec_judge_def;
2023-10-31 18:12:21 +08:00
void elec_judge(elec_judge_def *e,int task_num,uint8_t *exe_ack,
uint8_t *exe_flag,uint8_t *data,uint8_t *marerr,uint8_t *suberr);
2023-10-30 18:38:01 +08:00
#endif