local.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Bluetooth Mesh */
  2. /*
  3. * SPDX-FileCopyrightText: 2017 Intel Corporation
  4. * SPDX-FileContributor: 2020-2021 Espressif Systems (Shanghai) CO LTD
  5. *
  6. * SPDX-License-Identifier: Apache-2.0
  7. */
  8. #ifndef _LOCAL_H_
  9. #define _LOCAL_H_
  10. #include "mesh/types.h"
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. int bt_mesh_model_subscribe_group_addr(uint16_t elem_addr, uint16_t mod_id,
  15. uint16_t cid, uint16_t group_addr);
  16. int bt_mesh_model_unsubscribe_group_addr(uint16_t elem_addr, uint16_t cid,
  17. uint16_t mod_id, uint16_t group_addr);
  18. const uint8_t *bt_mesh_node_get_local_net_key(uint16_t net_idx);
  19. const uint8_t *bt_mesh_node_get_local_app_key(uint16_t app_idx);
  20. int bt_mesh_node_local_net_key_add(uint16_t net_idx, const uint8_t net_key[16]);
  21. int bt_mesh_node_local_app_key_add(uint16_t net_idx, uint16_t app_idx,
  22. const uint8_t app_key[16]);
  23. int bt_mesh_node_bind_app_key_to_model(uint16_t elem_addr, uint16_t mod_id,
  24. uint16_t cid, uint16_t app_idx);
  25. #if CONFIG_BLE_MESH_DF_SRV
  26. int bt_mesh_enable_directed_forwarding(uint16_t net_idx, bool directed_forwarding,
  27. bool directed_forwarding_relay);
  28. #endif
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif /* _LOCAL_H_ */