b.liu | 68a94c9 | 2025-05-24 12:53:41 +0800 | [diff] [blame^] | 1 | /**
|
| 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 |
|
| 16 | This section contains comments describing changes made to the module.
|
| 17 | Notice that changes are listed in reverse chronological order.
|
| 18 |
|
| 19 |
|
| 20 | WHEN WHO WHAT, WHERE, WHY
|
| 21 | ---------- ------------ ----------------------------------------------------
|
| 22 | 06/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 | ********************************************************/
|
| 36 | int 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 | ********************************************************/
|
| 46 | int 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 | ********************************************************/
|
| 60 | int ql_atc_send(char* cmd, char* resp, int resp_len);
|
| 61 |
|
| 62 |
|
| 63 | #endif
|