53 lines
		
	
	
		
			751 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			53 lines
		
	
	
		
			751 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								#ifndef handle_for_checker_h__
							 | 
						||
| 
								 | 
							
								#define handle_for_checker_h__
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include "rtthread.h"
							 | 
						||
| 
								 | 
							
								#include "signal.h"
							 | 
						||
| 
								 | 
							
								#include "list.h"
							 | 
						||
| 
								 | 
							
								#include "bytearray.h"
							 | 
						||
| 
								 | 
							
								#include "dev_flash.h"
							 | 
						||
| 
								 | 
							
								#include "handle.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								typedef struct{
							 | 
						||
| 
								 | 
							
								  uint8_t app_state;
							 | 
						||
| 
								 | 
							
								  uint8_t slaver_addr;
							 | 
						||
| 
								 | 
							
								  uint16_t chip_tmper;
							 | 
						||
| 
								 | 
							
								  uint16_t ad_2v5;
							 | 
						||
| 
								 | 
							
								  uint16_t ad_1v25;
							 | 
						||
| 
								 | 
							
								  uint16_t ad_wave;
							 | 
						||
| 
								 | 
							
								  uint16_t ad_5v5_just;
							 | 
						||
| 
								 | 
							
								  uint16_t ad_26v_just;
							 | 
						||
| 
								 | 
							
								  uint16_t hard_version;
							 | 
						||
| 
								 | 
							
								  uint16_t soft_version;
							 | 
						||
| 
								 | 
							
								  uint16_t res_just;
							 | 
						||
| 
								 | 
							
								  uint32_t scheme_id;
							 | 
						||
| 
								 | 
							
								}bootinfo_data;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 创建一个获取自检信息的方法
							 | 
						||
| 
								 | 
							
								// 返回数据为 bootinfo_data 指针
							 | 
						||
| 
								 | 
							
								handle_def *bootinfo_creat(void);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 创建一个检测方法
							 | 
						||
| 
								 | 
							
								// 返回数据为 scheme_returns 指针
							 | 
						||
| 
								 | 
							
								handle_def *check_creat(const scheme_def *sch);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif
							 | 
						||
| 
								 | 
							
								
							 |