![]() |
Zephyr API 3.6.99
|
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. | |
Statistic .
| void bt_mesh_stat_get | ( | struct bt_mesh_statistic * | st | ) |
#include <zephyr/bluetooth/mesh/statistic.h>
Get mesh frame handling statistic.
| st | Bluetooth Mesh statistic. |
| 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.
| timing | Pointer to structure to populate. |
| 0 | Success. |
| -ENOTSUP | LPN or statistic feature not enabled. |
| -EINVAL | NULL pointer. |
| void bt_mesh_stat_lpn_timing_reset | ( | void | ) |
#include <zephyr/bluetooth/mesh/statistic.h>
Reset measured LPN friendship poll timing statistics.
| void bt_mesh_stat_reset | ( | void | ) |
#include <zephyr/bluetooth/mesh/statistic.h>
Reset mesh frame handling statistic.