32 lines
714 B
C
32 lines
714 B
C
#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键值名字
|
|
json_cmd_handle handle; //回调函数
|
|
struct json_callback_struct *child_ptr; //子目录
|
|
uint8_t child_num; //子目录数目
|
|
}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
|