#include <zephyr/kernel.h>
#include "posix_native_task.h"
#include "bsim_args_runner.h"
#include <stdio.h>
#include <string.h>
#include "bluesync_statistic.h"
#include "../bluesync_bitfields.h"
#include <zephyr/logging/log.h>
#include "synced_time_logger.h"
Go to the source code of this file.
◆ SEPARATION_TOKEN
| #define SEPARATION_TOKEN ";" |
◆ bluesync_statistic_deinit()
| void bluesync_statistic_deinit |
( |
| ) |
|
Deinitialize the BlueSync statistics module.
This function cleans up and close files
Definition at line 128 of file bluesync_statistic_bsim.c.
◆ bluesync_statistic_init()
| void bluesync_statistic_init |
( |
| ) |
|
Initialize the BlueSync statistics module.
This should be called once at system startup or before beginning a series of synchronization evaluations. It opens needed files.
Definition at line 114 of file bluesync_statistic_bsim.c.
◆ bluesync_statistic_packet_status()
◆ LOG_MODULE_REGISTER()
| LOG_MODULE_REGISTER |
( |
bluesync_statistic_bsim |
, |
|
|
CONFIG_BLUESYNC_LOG_LEVEL |
|
|
) |
| |
◆ NATIVE_TASK() [1/2]
◆ NATIVE_TASK() [2/2]
◆ open_stat()
| static FILE * open_stat |
( |
char * |
filename, |
|
|
uint32_t |
device_number |
|
) |
| |
|
static |
◆ statistic_bluesync_status()
Analyze and log synchronization statistics based on a series of timestamps.
This function stores master and slave timestamp pairs into a CSV file.
- Parameters
-
| elem_master | Pointer to the array of master timestamps. |
| elem_slave | Pointer to the array of local timestamps captured by the slave. |
| size | Number of timestamp pairs to process. |
Definition at line 75 of file bluesync_statistic_bsim.c.
◆ node