b.liu | d440f9f | 2025-04-18 10:44:31 +0800 | [diff] [blame] | 1 | |
| 2 | /** |
| 3 | @file |
| 4 | ql_fota_common.h |
| 5 | |
| 6 | @brief |
| 7 | This file provides the definitions for common functions, and declares the |
| 8 | common functions. |
| 9 | |
| 10 | */ |
| 11 | /*============================================================================ |
| 12 | Copyright (c) 2017 Quectel Wireless Solution, Co., Ltd. All Rights Reserved. |
| 13 | Quectel Wireless Solution Proprietary and Confidential. |
| 14 | =============================================================================*/ |
| 15 | /*=========================================================================== |
| 16 | |
| 17 | EDIT HISTORY FOR MODULE |
| 18 | |
| 19 | This section contains comments describing changes made to the module. |
| 20 | Notice that changes are listed in reverse chronological order. |
| 21 | |
| 22 | |
| 23 | WHEN WHO WHAT, WHERE, WHY |
| 24 | ---------- ------------ ---------------------------------------------------- |
| 25 | 23/08/2019 Nebula.li create |
| 26 | =============================================================================*/ |
| 27 | |
| 28 | #ifndef __QL_FOTA_COMMON_H |
| 29 | #define __QL_FOTA_COMMON_H |
| 30 | |
| 31 | #include <stdint.h> |
| 32 | |
| 33 | #define QL_OTAD_CLIENT_INIT_CNT_MAX 20 |
| 34 | |
| 35 | #define QL_OTAD_SEND_MSG_TIMEOUT (3 * 1000) |
| 36 | |
| 37 | typedef void (*ql_otad_service_error_cb_f)(int error); |
| 38 | |
| 39 | int ql_otad_client_init(void); |
| 40 | int ql_otad_client_release(void); |
| 41 | int ql_otad_send_msg_sync(int32_t msg_id, |
| 42 | void *p_req_msg_data, |
| 43 | uint32_t req_msg_data_len, |
| 44 | void *p_resp_msg_data, |
| 45 | uint32_t resp_msg_data_len, |
| 46 | uint32_t timeout); |
| 47 | |
| 48 | #endif /* __QL_FOTA_COMMON_H */ |