NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
rpl.h
1/* Bluetooth Mesh */
2
3/*
4 * Copyright (c) 2017 Intel Corporation
5 * Copyright (c) 2020 Lingao Meng
6 *
7 * SPDX-License-Identifier: Apache-2.0
8 */
9
10struct bt_mesh_rpl {
11 uint64_t src:15,
12 old_iv:1,
13 seq:24,
20 seg:24;
21};
22
23typedef void (*bt_mesh_rpl_func_t)(struct bt_mesh_rpl *rpl,
24 void *user_data);
25
26void bt_mesh_rpl_reset(void);
27bool bt_mesh_rpl_check(struct bt_mesh_net_rx *rx,
28 struct bt_mesh_rpl **match);
29void bt_mesh_rpl_clear(void);
30void bt_mesh_rpl_update(struct bt_mesh_rpl *rpl,
31 struct bt_mesh_net_rx *rx);
32void bt_mesh_rpl_init(void);