1 /*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #define RPR_OP_EXTENDED_SCAN_REPORT BT_MESH_MODEL_OP_2(0x80, 0x57)
8 #define RPR_OP_EXTENDED_SCAN_START BT_MESH_MODEL_OP_2(0x80, 0x56)
9 #define RPR_OP_LINK_CLOSE BT_MESH_MODEL_OP_2(0x80, 0x5A)
10 #define RPR_OP_LINK_GET BT_MESH_MODEL_OP_2(0x80, 0x58)
11 #define RPR_OP_LINK_OPEN BT_MESH_MODEL_OP_2(0x80, 0x59)
12 #define RPR_OP_LINK_REPORT BT_MESH_MODEL_OP_2(0x80, 0x5C)
13 #define RPR_OP_LINK_STATUS BT_MESH_MODEL_OP_2(0x80, 0x5B)
14 #define RPR_OP_PDU_OUTBOUND_REPORT BT_MESH_MODEL_OP_2(0x80, 0x5E)
15 #define RPR_OP_PDU_REPORT BT_MESH_MODEL_OP_2(0x80, 0x5F)
16 #define RPR_OP_PDU_SEND BT_MESH_MODEL_OP_2(0x80, 0x5D)
17 #define RPR_OP_SCAN_CAPS_GET BT_MESH_MODEL_OP_2(0x80, 0x4F)
18 #define RPR_OP_SCAN_CAPS_STATUS BT_MESH_MODEL_OP_2(0x80, 0x50)
19 #define RPR_OP_SCAN_GET BT_MESH_MODEL_OP_2(0x80, 0x51)
20 #define RPR_OP_SCAN_REPORT BT_MESH_MODEL_OP_2(0x80, 0x55)
21 #define RPR_OP_SCAN_START BT_MESH_MODEL_OP_2(0x80, 0x52)
22 #define RPR_OP_SCAN_STATUS BT_MESH_MODEL_OP_2(0x80, 0x54)
23 #define RPR_OP_SCAN_STOP BT_MESH_MODEL_OP_2(0x80, 0x53)
24
25 #define RPR_NODE(ctx) \
26 { \
27 .addr = (ctx)->addr, .net_idx = (ctx)->net_idx, \
28 .ttl = BT_MESH_TTL_DEFAULT \
29 }
30
rpr_node_equal(const struct bt_mesh_rpr_node * a,const struct bt_mesh_rpr_node * b)31 static inline bool rpr_node_equal(const struct bt_mesh_rpr_node *a,
32 const struct bt_mesh_rpr_node *b)
33 {
34 return (a->addr == b->addr) && (a->net_idx == b->net_idx);
35 }
36
37 enum bt_mesh_rpr_node_refresh bt_mesh_node_refresh_get(void);
38