2016-11-04 18:48:16 +00:00
|
|
|
#ifndef _APP_AIRSYNC_PRF_H__
|
|
|
|
#define _APP_AIRSYNC_PRF_H__
|
|
|
|
|
|
|
|
#include "prf_defs.h"
|
|
|
|
#if (WX_AIRSYNC_CFG)
|
|
|
|
|
|
|
|
|
|
|
|
#include "app_wechat_util.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#define MAGIC_NUMBER 0xFE
|
|
|
|
|
|
|
|
/**
|
|
|
|
****************************************************************************************
|
|
|
|
* @brief Create Wechat Database
|
|
|
|
*
|
|
|
|
****************************************************************************************
|
|
|
|
*/
|
|
|
|
void app_wechat_create_db(void);
|
|
|
|
|
|
|
|
void app_wechat_SetDatahandler(data_handler* pHandler);
|
|
|
|
int ble_wechat_indicate_data(uint8_t *data, int len);
|
|
|
|
int ble_wechat_indicate_data_chunk(void);
|
|
|
|
void ble_wechat_process_received_data(uint8_t* pData, uint32_t length);
|
|
|
|
data_handler* app_wechat_datahandler(void);
|
|
|
|
bool ble_wechat_is_last_data_sent_out(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif ///WX_AIRSYNC_CFG
|
|
|
|
|
|
|
|
#endif ///_APP_AIRSYNC_PRF_H__
|
|
|
|
|
|
|
|
|
|
|
|
|