2020-10-26 07:26:45 +00:00
|
|
|
/* Bluetooth Mesh */
|
|
|
|
|
|
|
|
/*
|
2021-10-26 08:24:54 +00:00
|
|
|
* SPDX-FileCopyrightText: 2017 Intel Corporation
|
|
|
|
* SPDX-FileContributor: 2020-2021 Espressif Systems (Shanghai) CO LTD
|
2020-10-26 07:26:45 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SCAN_H_
|
|
|
|
#define _SCAN_H_
|
|
|
|
|
2023-08-25 06:28:44 +00:00
|
|
|
#include "mesh/adapter.h"
|
2020-10-26 07:26:45 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-08-28 08:09:37 +00:00
|
|
|
#define BLE_MESH_STORE_UNPROV_INFO_MAX_NUM 10
|
|
|
|
#define BLE_MESH_STORE_UNPROV_INFO_QUERY_TYPE_ADDR 0
|
|
|
|
#define BLE_MESH_STORE_UNPROV_INFO_QUERY_TYPE_UUID BIT(0)
|
|
|
|
#define BLE_MESH_STORE_UNPROV_INFO_QUERY_TYPE_EXISTS BIT(1)
|
|
|
|
|
2020-10-26 07:26:45 +00:00
|
|
|
const bt_mesh_addr_t *bt_mesh_get_unprov_dev_addr(void);
|
2023-08-28 08:09:37 +00:00
|
|
|
uint8_t bt_mesh_get_adv_type(void);
|
|
|
|
|
|
|
|
int bt_mesh_unprov_dev_fifo_enqueue(uint8_t uuid[16], const uint8_t addr[6], uint8_t adv_type);
|
|
|
|
|
|
|
|
int bt_mesh_unprov_dev_info_query(uint8_t uuid[16], uint8_t addr[6],
|
|
|
|
uint8_t *adv_type, uint8_t query_type);
|
2020-10-26 07:26:45 +00:00
|
|
|
|
|
|
|
int bt_mesh_scan_enable(void);
|
|
|
|
|
|
|
|
int bt_mesh_scan_disable(void);
|
|
|
|
|
|
|
|
int bt_mesh_scan_with_wl_enable(void);
|
|
|
|
|
2020-10-26 07:51:18 +00:00
|
|
|
struct bt_mesh_ble_scan_param {
|
|
|
|
uint32_t duration;
|
|
|
|
};
|
|
|
|
|
|
|
|
int bt_mesh_start_ble_scan(struct bt_mesh_ble_scan_param *param);
|
|
|
|
|
|
|
|
int bt_mesh_stop_ble_scan(void);
|
|
|
|
|
2020-10-26 07:26:45 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _SCAN_H_ */
|