rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | //ATCP Service atcmd |
| 2 | #ifndef _ATCI_UTIL_H_ |
| 3 | #define _ATCI_UTIL_H_ |
| 4 | #include "atci_common.h" |
| 5 | |
| 6 | typedef int (*atci_cmd_handle_func)(char *cmd, int op_mode, int target, |
| 7 | char *response); |
| 8 | typedef 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. |
| 14 | typedef struct atci_data_req_s { |
| 15 | int request_id; |
| 16 | int data_len; |
| 17 | void *data; |
| 18 | } atci_data_req_t; |
| 19 | |
| 20 | int atci_cmd_register(atci_cmd_type_t *ptr); |
| 21 | atci_cmd_type_t* atci_find_cmd_handler(char *prefix); |
| 22 | char* request2RILStr(int request); |
| 23 | #endif |