/**
*****************************************************************************************
* Copyright(c) 2017, Realtek Semiconductor Corporation. All rights reserved.
*****************************************************************************************
* @file peripheral_app.h
* @brief This file handles BLE BT5 peripheral application routines.
* @author jane
* @date 2017-06-06
* @version v1.0
**************************************************************************************
* @attention
*
© COPYRIGHT 2017 Realtek Semiconductor Corporation
**************************************************************************************
*/
#ifndef _BT5_PERIPHERAL_APP__
#define _BT5_PERIPHERAL_APP__
#ifdef __cplusplus
extern "C" {
#endif
/*============================================================================*
* Header Files
*============================================================================*/
#include "gap_le.h"
#include "app_msg.h"
/*============================================================================*
* Functions
*============================================================================*/
/**
* @brief All the application messages are pre-handled in this function
* @note All the IO MSGs are sent to this function, then the event handling
* function shall be called according to the MSG type.
* @param[in] io_msg IO message data
* @return void
*/
void app_handle_io_msg(T_IO_MSG io_msg);
/**
* @brief Callback for gap le to notify app
* @param[in] cb_type callback msy type @ref GAP_LE_MSG_Types.
* @param[in] p_cb_data point to callback data @ref T_LE_CB_DATA.
* @retval result @ref T_APP_RESULT
*/
T_APP_RESULT app_gap_callback(uint8_t cb_type, void *p_cb_data);
#ifdef __cplusplus
}
#endif
#endif