第一次提交
This commit is contained in:
31
App/app_get_json.h
Normal file
31
App/app_get_json.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef _APP_GET_JSON_H
|
||||
#define _APP_GET_JSON_H
|
||||
#include "stdint.h"
|
||||
#include "cJSON.h"
|
||||
|
||||
#pragma pack (1)
|
||||
typedef struct
|
||||
{
|
||||
uint16_t output_mode;
|
||||
uint16_t output_ax;
|
||||
uint16_t output_ay;
|
||||
uint16_t min_trigger_res_value;
|
||||
uint16_t max_trigger_res_value;
|
||||
uint16_t div_trigger_res;
|
||||
}json_data_struct;
|
||||
|
||||
typedef int (*json_cmd_handle)(void *data);
|
||||
|
||||
typedef struct json_callback_struct
|
||||
{
|
||||
char * name; //json<6F><6E>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
json_cmd_handle handle; //<2F>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD>
|
||||
struct json_callback_struct *child_ptr; //<2F><>Ŀ¼
|
||||
uint8_t child_num; //<2F><>Ŀ¼<C4BF><C2BC>Ŀ
|
||||
}json_callback_t;
|
||||
#pragma pack ()
|
||||
|
||||
int get_Json_data(json_data_struct * sys);
|
||||
cJSON* creat_body_json(uint8_t style,int coor_x, int coor_y);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user