blob: 991ab8d942d4ac4190df3f941015b86fa0f67c8b [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001//ATCP Service atcmd
2#ifndef _ATCI_UTIL_H_
3#define _ATCI_UTIL_H_
4#include "atci_common.h"
5
6typedef int (*atci_cmd_handle_func)(char *cmd, int op_mode, int target,
7 char *response);
8typedef struct atci_cmd_type_s {
9 char *cmd_prefix;
10 atci_target_e target;
11 atci_cmd_handle_func cmd_handle_func;
12} atci_cmd_type_t;
13//socket data protocol.
14typedef struct atci_data_req_s {
15 int request_id;
16 int data_len;
17 void *data;
18} atci_data_req_t;
19
20int atci_cmd_register(atci_cmd_type_t *ptr);
21atci_cmd_type_t* atci_find_cmd_handler(char *prefix);
22char* request2RILStr(int request);
23#endif