1 /* 2 * Copyright (c) 2023 Nordic Semiconductor 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 9 enum bt_mesh_test_friendship_evt_flags { 10 BT_MESH_TEST_LPN_ESTABLISHED, 11 BT_MESH_TEST_LPN_TERMINATED, 12 BT_MESH_TEST_LPN_POLLED, 13 BT_MESH_TEST_FRIEND_ESTABLISHED, 14 BT_MESH_TEST_FRIEND_TERMINATED, 15 BT_MESH_TEST_FRIEND_POLLED, 16 17 BT_MESH_TEST_FRIENDSHIP_FLAGS, 18 }; 19 20 int bt_mesh_test_friendship_evt_wait(enum bt_mesh_test_friendship_evt_flags evt, 21 k_timeout_t timeout); 22 23 void bt_mesh_test_friendship_evt_clear(enum bt_mesh_test_friendship_evt_flags evt); 24 25 bool bt_mesh_test_friendship_state_check(enum bt_mesh_test_friendship_evt_flags evt); 26 27 void bt_mesh_test_friendship_init(int max_evt_count); 28 29 uint16_t bt_mesh_test_friendship_addr_get(void); 30