Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Current Time Service callback structure. More...
#include <cts.h>
Data Fields | |
void(* | notification_changed )(bool enabled) |
Current Time Service notifications changed. | |
int(* | cts_time_write )(struct bt_cts_time_format *cts_time) |
The Current Time has been updated by a peer. | |
int(* | fill_current_cts_time )(struct bt_cts_time_format *cts_time) |
When current time Read request or notification is triggered, CTS uses this callback to retrieve current time information from application. | |
Current Time Service callback structure.
int(* bt_cts_cb::cts_time_write) (struct bt_cts_time_format *cts_time) |
The Current Time has been updated by a peer.
It is the responsibility of the application to store the new time.
cts_time | [IN] updated time |
int(* bt_cts_cb::fill_current_cts_time) (struct bt_cts_time_format *cts_time) |
When current time Read request or notification is triggered, CTS uses this callback to retrieve current time information from application.
Application must implement it and provide cts formatted current time information
cts_time | [IN] updated time |
void(* bt_cts_cb::notification_changed) (bool enabled) |
Current Time Service notifications changed.
enabled | True if notifications are enabled, false if disabled |