blob: 1a0cb90d17083503c2bf2adeefc545af44fff5fd [file] [log] [blame]
b.liud440f9f2025-04-18 10:44:31 +08001
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
19This section contains comments describing changes made to the module.
20Notice that changes are listed in reverse chronological order.
21
22
23WHEN WHO WHAT, WHERE, WHY
24---------- ------------ ----------------------------------------------------
2523/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
37typedef void (*ql_otad_service_error_cb_f)(int error);
38
39int ql_otad_client_init(void);
40int ql_otad_client_release(void);
41int 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 */