BlueSync - BLE Time Sync for Zephyr
High-precision time synchronization for BLE Mesh networks
Loading...
Searching...
No Matches
bluesync.h File Reference

Public API for the BlueSync time synchronization module. More...

#include <zephyr/kernel.h>
Include dependency graph for bluesync.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  bluesync_role_t { BLUESYNC_NONE_ROLE = 0 , BLUESYNC_AUTHORITY_ROLE = 1 , BLUESYNC_CLIENT_ROLE = 2 }
 Defines the operational roles for a BlueSync node. More...
 

Functions

void bluesync_init (void)
 Initializes the BlueSync time synchronization module.
 
void bluesync_set_role (bluesync_role_t role)
 Sets the operational role of the BlueSync node.
 
void bluesync_start_net_sync (void)
 Starts a BlueSync synchronization round as the time authority.
 
void bluesync_start_net_sync_with_unix_epoch_us (uint64_t unix_epoch_us)
 Starts a synchronization round using a known UNIX epoch time.
 
uint64_t get_current_unix_time_us (void)
 Gets the current synchronized UNIX time.
 

Detailed Description

Public API for the BlueSync time synchronization module.

This file defines the core API functions for initializing and managing time synchronization using the BlueSync protocol in a BLE Mesh environment.

Definition in file bluesync.h.