2016-11-24 17:58:26 +00:00
|
|
|
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2016-11-15 12:56:15 +00:00
|
|
|
#ifndef __BLUFI_ADV_H__
|
|
|
|
#define __BLUFI_ADV_H__
|
|
|
|
|
|
|
|
#include "bta_api.h"
|
|
|
|
#include "btm_ble_api.h"
|
|
|
|
#include "esp_bt_defs.h"
|
|
|
|
|
|
|
|
typedef enum {
|
2016-11-24 18:10:15 +00:00
|
|
|
BLE_ADV_DATA_IDX = 0,
|
|
|
|
BLE_SCAN_RSP_DATA_IDX = 1,
|
|
|
|
ADV_SCAN_IDX_MAX,
|
2016-11-15 12:56:15 +00:00
|
|
|
} ADV_SCAN_IDX_t;
|
|
|
|
|
2016-11-24 18:10:15 +00:00
|
|
|
typedef struct {
|
|
|
|
char *adv_name; //set the device name to be sent on the advertising
|
|
|
|
tBTA_BLE_ADV_DATA ble_adv_data;
|
|
|
|
} tBLUFI_BLE_ADV_DATA;
|
2016-11-15 12:56:15 +00:00
|
|
|
|
|
|
|
extern void BlufiBleConfigadvData(tBLUFI_BLE_ADV_DATA *adv_data,
|
2016-11-24 18:10:15 +00:00
|
|
|
tBTA_SET_ADV_DATA_CMPL_CBACK *p_adv_data_cback);
|
2016-11-15 12:56:15 +00:00
|
|
|
|
|
|
|
extern void BlufiBleSetScanRsp(tBLUFI_BLE_ADV_DATA *scan_rsp_data,
|
2016-11-24 18:10:15 +00:00
|
|
|
tBTA_SET_ADV_DATA_CMPL_CBACK *p_scan_rsp_data_cback);
|
2016-11-15 12:56:15 +00:00
|
|
|
|
|
|
|
#endif /* __BLUFI_ADV_H__ */
|