| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef CONFIG_MIN_8M_VERSION | 
|  | 2 | #include "ext_socket_func.h" | 
|  | 3 | #include "cfg_nv_def.h" | 
|  | 4 | #include "at_context.h" | 
|  | 5 | #include "kwatch_msg.h" | 
|  | 6 |  | 
|  | 7 | int ext_mygpshw_inquire_func(char *at_paras, void ** res_msg) | 
|  | 8 | { | 
|  | 9 | ipc_send_message(MODULE_ID_AT_CTL,MODULE_ID_GPS,KWATCH_MSG_GPS_INQUIRE_REQ,0, NULL,0); | 
|  | 10 | return AT_CONTINUE; | 
|  | 11 | } | 
|  | 12 |  | 
|  | 13 | int ext_mygpscdn_set_func(char *at_paras, void ** res_msg) | 
|  | 14 | { | 
|  | 15 | ipc_send_message(MODULE_ID_AT_CTL,MODULE_ID_GPS,KWATCH_MSG_GPS_COORDINATE_SET_REQ,strlen(at_paras), (unsigned char *)at_paras,0); | 
|  | 16 | return AT_CONTINUE; | 
|  | 17 | } | 
|  | 18 | int ext_mygpsgpd_set_func(char *at_paras, void ** res_msg) | 
|  | 19 | { | 
|  | 20 | ipc_send_message(MODULE_ID_AT_CTL,MODULE_ID_GPS,KWATCH_MSG_GPS_GPD_SET_REQ,strlen(at_paras), (unsigned char *)at_paras,0); | 
|  | 21 | return AT_CONTINUE; | 
|  | 22 | } | 
|  | 23 |  | 
|  | 24 | int ext_mygpspwr_set_func(char *at_paras, void ** res_msg) | 
|  | 25 | { | 
|  | 26 | ipc_send_message(MODULE_ID_AT_CTL,MODULE_ID_GPS,KWATCH_MSG_GPS_PWR_SET_REQ,strlen(at_paras), (unsigned char *)at_paras,0); | 
|  | 27 | return AT_CONTINUE; | 
|  | 28 | } | 
|  | 29 |  | 
|  | 30 | int  ext_gps_regist(void) | 
|  | 31 | { | 
|  | 32 | register_serv_func("MYGPSPWR=", MODULE_ID_GPS, ext_mygpspwr_set_func); | 
|  | 33 | register_serv_func("MYGPSGPD=", MODULE_ID_GPS, ext_mygpsgpd_set_func); | 
|  | 34 | register_serv_func("MYGPSCDN=", MODULE_ID_GPS, ext_mygpscdn_set_func); | 
|  | 35 | register_serv_func("MYGPSHW?", MODULE_ID_GPS, ext_mygpshw_inquire_func); | 
|  | 36 |  | 
|  | 37 | return 0; | 
|  | 38 | } | 
|  | 39 |  | 
|  | 40 | #endif |