text: /*  Bluetooth Mesh */
  
  /*
   * Copyright (c) 2017 Intel Corporation
   *
   * SPDX-License-Identifier: Apache-2.0
   */
  
  #ifndef _MESH_MESH_INT_H_
  #define _MESH_MESH_INT_H_
  
  #define MESH_BIT(n) (1UL << (n))
  #define MESH_BIT_MASK(n) (MESH_BIT(n) - 1)
  
  /* Net-key */
  #define BT_MESH_KEY_PRIMARY 0x0000
  #define BT_MESH_KEY_ANY     0xffff
  
  #define BT_MESH_ADDR_IS_UNICAST(addr) ((addr) && (addr) < 0x8000)
  #define BT_MESH_ADDR_IS_GROUP(addr) ((addr) >= 0xc000 && (addr) <= 0xff00)
  #define BT_MESH_ADDR_IS_VIRTUAL(addr) ((addr) >= 0x8000 && (addr) < 0xc000)
  #define BT_MESH_ADDR_IS_RFU(addr) ((addr) >= 0xff00 && (addr) <= 0xfffb)
  
  struct bt_mesh_net;
  
  bool bt_mesh_is_provisioned(void);
  
  #endif
  