63 lines
1.9 KiB
C
Executable File
63 lines
1.9 KiB
C
Executable File
/****************************************************************************
|
|
|
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
|
|
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
|
be copied by any method or incorporated into another program without
|
|
the express written consent of Aerospace C.Power. This Information or any portion
|
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
|
liability for its use in any way and conveys no license or title under
|
|
any patent or copyright and makes no representation or warranty that this
|
|
Information is free from patent or copyright infringement.
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _IOT_BT_EXT_UPGRADE_H_
|
|
#define _IOT_BT_EXT_UPGRADE_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "iot_pkt_api.h"
|
|
|
|
/* @brief bluetooth upgrade rx data
|
|
* @param pkt : rx data pkt
|
|
* @return: none
|
|
*/
|
|
void iot_bt_ext_upgrade_rx(iot_pkt_t *pkt);
|
|
|
|
/* @brief bluetooth upgrade init
|
|
*
|
|
* @return: error code
|
|
*/
|
|
uint32_t iot_bt_ext_upgrade_init(void);
|
|
|
|
/**
|
|
* @brief : bluetooth upgrade deinit
|
|
* @return: none
|
|
*/
|
|
void iot_bt_ext_upgrade_deinit(void);
|
|
|
|
/**
|
|
* @brief : bluetooth upgrade message handle
|
|
* @param msg_id : message id
|
|
* @param data : message data
|
|
* @return: none
|
|
*/
|
|
void iot_bt_ext_upgrade_msg_handle(uint8_t msg_id, void *data);
|
|
|
|
/**
|
|
* @brief : bluetooth upgrade timeover callback
|
|
* @param elapsed_time : main timer one shot elapsed_time
|
|
* @return: none
|
|
*/
|
|
void iot_bt_ext_upgrade_timeover_cb(uint32_t elapsed_time);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|