Zephyr API 3.6.99
Loading...
Searching...
No Matches

Statistic . More...

Data Structures

struct  bt_mesh_statistic
 The structure that keeps statistics of mesh frames handling. More...
 
struct  bt_mesh_lpn_timing
 Measured LPN friendship timing derived from timestamps. More...
 

Functions

void bt_mesh_stat_get (struct bt_mesh_statistic *st)
 Get mesh frame handling statistic.
 
void bt_mesh_stat_reset (void)
 Reset mesh frame handling statistic.
 
int bt_mesh_stat_lpn_timing_get (struct bt_mesh_lpn_timing *timing)
 Get measured LPN friendship poll timing.
 
void bt_mesh_stat_lpn_timing_reset (void)
 Reset measured LPN friendship poll timing statistics.
 

Detailed Description

Statistic .

Function Documentation

◆ bt_mesh_stat_get()

void bt_mesh_stat_get ( struct bt_mesh_statistic * st)

#include <zephyr/bluetooth/mesh/statistic.h>

Get mesh frame handling statistic.

Parameters
stBluetooth Mesh statistic.

◆ bt_mesh_stat_lpn_timing_get()

int bt_mesh_stat_lpn_timing_get ( struct bt_mesh_lpn_timing * timing)

#include <zephyr/bluetooth/mesh/statistic.h>

Get measured LPN friendship poll timing.

Returns timestamp-derived measurements of actual ReceiveDelay and ReceiveWindow observed on-air. Timestamps are captured using k_uptime_get() at poll TX completion, scanner enable, and response RX.

Parameters
timingPointer to structure to populate.
Return values
0Success.
-ENOTSUPLPN or statistic feature not enabled.
-EINVALNULL pointer.

◆ bt_mesh_stat_lpn_timing_reset()

void bt_mesh_stat_lpn_timing_reset ( void )

#include <zephyr/bluetooth/mesh/statistic.h>

Reset measured LPN friendship poll timing statistics.

◆ bt_mesh_stat_reset()

void bt_mesh_stat_reset ( void )

#include <zephyr/bluetooth/mesh/statistic.h>

Reset mesh frame handling statistic.