#ifndef _MULTI_PROTOCOL_MAIN_H_
#define _MULTI_PROTOCOL_MAIN_H_

#include "btstack/btstack_task.h"
#include "btstack/bluetooth.h"
#include "bt_common.h"
#include "app_ble_spp_api.h"
#include "app_config.h"

#define BT_AI_SEL_PROTOCOL  0

//
// characteristics <--> handles
//
#define ATT_CHARACTERISTIC_2a00_01_VALUE_HANDLE 0x0003
#define ATT_CHARACTERISTIC_2a00_01_VALUE_HANDLE 0x0003
#define ATT_CHARACTERISTIC_2a05_01_VALUE_HANDLE 0x0006
#define ATT_CHARACTERISTIC_2a05_01_CLIENT_CONFIGURATION_HANDLE 0x0007

#define ATT_CHARACTERISTIC_ae01_01_VALUE_HANDLE 0x000a
#define ATT_CHARACTERISTIC_ae02_01_VALUE_HANDLE 0x000c
#define ATT_CHARACTERISTIC_ae02_01_CLIENT_CONFIGURATION_HANDLE 0x000d
// #define ATT_CHARACTERISTIC_ae01_01_VALUE_HANDLE 0x0082
// #define ATT_CHARACTERISTIC_ae02_01_VALUE_HANDLE 0x0084
// #define ATT_CHARACTERISTIC_ae02_01_CLIENT_CONFIGURATION_HANDLE 0x0085
// #define ATT_CHARACTERISTIC_2a00_01_VALUE_HANDLE 0x0003
// #define ATT_CHARACTERISTIC_ae01_01_VALUE_HANDLE 0x0006
// #define ATT_CHARACTERISTIC_ae02_01_VALUE_HANDLE 0x0008
// #define ATT_CHARACTERISTIC_ae02_01_CLIENT_CONFIGURATION_HANDLE 0x0009
// #define ATT_CHARACTERISTIC_ae03_01_VALUE_HANDLE 0x000b
// #define ATT_CHARACTERISTIC_ae04_01_VALUE_HANDLE 0x000d
// #define ATT_CHARACTERISTIC_ae04_01_CLIENT_CONFIGURATION_HANDLE 0x000e
// #define ATT_CHARACTERISTIC_ae05_01_VALUE_HANDLE 0x0010
// #define ATT_CHARACTERISTIC_ae05_01_CLIENT_CONFIGURATION_HANDLE 0x0011
// #define ATT_CHARACTERISTIC_ae10_01_VALUE_HANDLE 0x0013
#define ATT_CHARACTERISTIC_fec9_01_VALUE_HANDLE 0x0010
#define ATT_CHARACTERISTIC_fea1_01_VALUE_HANDLE 0x0012
#define ATT_CHARACTERISTIC_fea1_01_CLIENT_CONFIGURATION_HANDLE 0x0013


void bt_ble_adv_enable(u8 enable);
void multi_protocol_common_callback_init(void);
void multi_protocol_common_callback_exit(void);

#endif
