38 #ifndef MESH_FRIEND_H__ 39 #define MESH_FRIEND_H__ 43 #include "mesh_friendship_types.h" 44 #include "friend_sublist.h" 45 #include "friend_queue.h" 46 #include "core_tx_friend.h" 54 #define MESH_FRIEND_RECEIVE_WINDOW_MIN_MS (1) 56 #define MESH_FRIEND_RECEIVE_WINDOW_MAX_MS (255) 61 #define MESH_FRIEND_RECEIVE_WINDOW_DEFAULT_MS (5) core_tx_friend_stats_t bearer
Statistics for the Friend Bearer submodule.
uint32_t mesh_friend_friendships_get(const mesh_friendship_t **pp_friendships, uint8_t *p_count)
Gets all the current active friendships.
uint32_t mesh_friend_friendship_terminate(const mesh_friendship_t *p_friendship)
Terminates the friendship with the given LPN.
uint32_t mesh_friend_friendship_terminate_all(void)
Terminates all active friendships.
bool mesh_friend_is_enabled(void)
Gets the state of the Friend feature.
Friendship statistics structure.
uint32_t mesh_friend_stats_get(const mesh_friendship_t *p_friendship, mesh_friend_stats_t *p_stats)
Gets the structures of statistics for the given friendship.
void mesh_friend_disable(void)
Disables the Friend feature.
uint32_t mesh_friend_init(void)
Initializes the Friend feature.
void mesh_friend_enable(void)
Enables the Friend feature.
uint32_t mesh_friend_receive_window_set(uint8_t receive_window_ms)
Sets the receive window offered in the Friend Offer.
friend_sublist_stats_t sublist
Statistics for the Friend Subscription List submodule.
friend_queue_stats_t queue
Statistics for the Friend Queue submodule.