11#include "../include/mesh/mesh.h"
13int bt_mesh_lpn_friend_update(
struct bt_mesh_net_rx *rx,
15int bt_mesh_lpn_friend_offer(
struct bt_mesh_net_rx *rx,
17int bt_mesh_lpn_friend_clear_cfm(
struct bt_mesh_net_rx *rx,
19int bt_mesh_lpn_friend_sub_cfm(
struct bt_mesh_net_rx *rx,
22static inline bool bt_mesh_lpn_established(
void)
24#if (MYNEWT_VAL(BLE_MESH_LOW_POWER))
25 return bt_mesh.lpn.established;
31static inline bool bt_mesh_lpn_match(uint16_t addr)
33#if (MYNEWT_VAL(BLE_MESH_LOW_POWER))
34 if (bt_mesh_lpn_established()) {
35 return (addr == bt_mesh.lpn.frnd);
41static inline bool bt_mesh_lpn_waiting_update(
void)
43#if (MYNEWT_VAL(BLE_MESH_LOW_POWER))
44 return (bt_mesh.lpn.state == BT_MESH_LPN_WAIT_UPDATE);
50void bt_mesh_lpn_msg_received(
struct bt_mesh_net_rx *rx);
52void bt_mesh_lpn_group_add(uint16_t group);
53void bt_mesh_lpn_group_del(uint16_t *groups,
size_t group_count);
55void bt_mesh_lpn_disable(
bool force);
57int bt_mesh_lpn_init(
void);