1 /* Bluetooth Mesh */ 2 3 /* 4 * SPDX-FileCopyrightText: 2017 Intel Corporation 5 * SPDX-FileContributor: 2020-2021 Espressif Systems (Shanghai) CO LTD 6 * 7 * SPDX-License-Identifier: Apache-2.0 8 */ 9 10 #ifndef _MESH_H_ 11 #define _MESH_H_ 12 13 #include "net.h" 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 #define BLE_MESH_KEY_PRIMARY 0x0000 20 #define BLE_MESH_KEY_ANY 0xffff 21 22 #define BLE_MESH_ADDR_IS_UNICAST(addr) ((addr) && (addr) < 0x8000) 23 #define BLE_MESH_ADDR_IS_GROUP(addr) ((addr) >= 0xc000 && (addr) <= 0xff00) 24 #define BLE_MESH_ADDR_IS_VIRTUAL(addr) ((addr) >= 0x8000 && (addr) < 0xc000) 25 #define BLE_MESH_ADDR_IS_RFU(addr) ((addr) >= 0xff00 && (addr) <= 0xfffb) 26 27 struct bt_mesh_net; 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif /* _MESH_H_ */ 34