pinebuds/services/ble_app/app_ancc/app_ancc_task.c

80 lines
2.5 KiB
C
Raw Permalink 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_ANC_CLIENT)
#include "app_ancc.h"
#include "app_ancc_task.h"
#include "app_sec.h"
#include "app_task.h" // Application Task API
2022-08-15 04:20:27 -05:00
/*
* FUNCTION DEFINITIONS
****************************************************************************************
*/
/**
****************************************************************************************
* @brief Handles ANCS Enable response
*
* @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 ancc_anc_enable_rsp_handler(ke_msg_id_t const msgid,
struct ancc_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_ancc_msg_handler_list[] = {
{ANCC_ENABLE_RSP, (ke_msg_func_t)ancc_anc_enable_rsp_handler},
2022-08-15 04:20:27 -05:00
};
const struct ke_state_handler app_ancc_table_handler = {
&app_ancc_msg_handler_list[0],
(sizeof(app_ancc_msg_handler_list) / sizeof(struct ke_msg_handler))};
2022-08-15 04:20:27 -05:00
#endif // BLE_ANC_CLIENT
2022-08-15 04:20:27 -05:00
#endif //(BLE_APP_PRESENT)
/// @} APPTASK