pinebuds/services/ble_app/app_amsc/app_amsc_task.c

81 lines
2.5 KiB
C
Raw Normal View History

2022-08-15 04:20:27 -05:00
/***************************************************************************
*
* Copyright 2015-2019 BES.
* All rights reserved. All unpublished rights reserved.
*
* No part of this work may be used or reproduced in any form or by any
* means, or stored in a database or retrieval system, without prior written
* permission of BES.
*
* Use of this work is governed by a license granted by BES.
* This work contains confidential and proprietary information of
* BES. which is protected by copyright, trade secret,
* trademark and other intellectual property rights.
*
****************************************************************************/
/**
****************************************************************************************
* @addtogroup APPTASK
* @{
****************************************************************************************
*/
/*
* INCLUDE FILES
****************************************************************************************
*/
#include "rwip_config.h" // SW configuration
2022-08-15 04:20:27 -05:00
#if (BLE_APP_PRESENT)
#if (BLE_AMS_CLIENT)
#include "app_amsc.h"
#include "app_amsc_task.h"
#include "app_sec.h"
#include "app_task.h" // Application Task API
2022-08-15 04:20:27 -05:00
#include "ke_msg.h"
/*
* FUNCTION DEFINITIONS
****************************************************************************************
*/
/**
****************************************************************************************
* @brief Handles AMS Eable reponse
*
* @param[in] msgid Id of the message received.
* @param[in] param Pointer to the parameters of the message.
* @param[in] dest_id ID of the receiving task instance (TASK_GAP).
* @param[in] src_id ID of the sending task instance.
*
* @return If the message was consumed or not.
****************************************************************************************
*/
int amsc_anc_enable_rsp_handler(ke_msg_id_t const msgid,
struct amsc_enable_rsp const *param,
ke_task_id_t const dest_id,
ke_task_id_t const src_id) {
return (KE_MSG_CONSUMED);
2022-08-15 04:20:27 -05:00
}
/// Default State handlers definition
const struct ke_msg_handler app_amsc_msg_handler_list[] = {
{AMSC_ENABLE_RSP, (ke_msg_func_t)amsc_anc_enable_rsp_handler},
2022-08-15 04:20:27 -05:00
};
const struct ke_state_handler app_amsc_table_handler = {
&app_amsc_msg_handler_list[0],
(sizeof(app_amsc_msg_handler_list) / sizeof(struct ke_msg_handler))};
2022-08-15 04:20:27 -05:00
#endif // BLE_AMS_CLIENT
2022-08-15 04:20:27 -05:00
#endif //(BLE_APP_PRESENT)
/// @} APPTASK