blob: 4c8d8a8662493c1408f869d0b56b7fd8318dbd8c [file] [log] [blame]
b.liu68a94c92025-05-24 12:53:41 +08001/**
2 @file
3 ql_atc.h
4 @brief
5 send at command api
6
7*/
8/*============================================================================
9 Copyright (c) 2017 Quectel Wireless Solution, Co., Ltd. All Rights Reserved.
10 Quectel Wireless Solution Proprietary and Confidential.
11 =============================================================================*/
12/*===========================================================================
13
14 EDIT HISTORY FOR MODULE
15
16This section contains comments describing changes made to the module.
17Notice that changes are listed in reverse chronological order.
18
19
20WHEN WHO WHAT, WHERE, WHY
21---------- ------------ ----------------------------------------------------
2206/07/2022 Wayen.xu create
23=============================================================================*/
24
25#ifndef QL_ATC_H
26#define QL_ATC_H
27
28/*******************************************************
29* @method: ql_atc_init
30* @Description: initialize environment variables.
31* @param: void
32* @return:
33 success: return 0
34 error: return !0
35********************************************************/
36int ql_atc_init();
37
38/*******************************************************
39* @method: ql_atc_release
40* @Description: release environment variables.
41* @param: void
42* @return:
43 success: return 0
44 error: return !0
45********************************************************/
46int ql_atc_release();
47
48/*******************************************************
49* @method: ql_atc_send
50* @Description: send at command(synchronous)
51 use this api should first call init api and finish call release api
52* @param:
53 cmd: at command
54 resp: at return value
55 len: response value length
56* @return:
57 success: return 0
58 error: return !0
59********************************************************/
60int ql_atc_send(char* cmd, char* resp, int resp_len);
61
62
63#endif