nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
cts_client.h File Reference
#include <zephyr/bluetooth/gatt.h>
#include <zephyr/bluetooth/conn.h>
#include <bluetooth/gatt_dm.h>

Go to the source code of this file.

Data Structures

struct  bt_cts_exact_time_256
 "Exact Time 256" field of the Current Time characteristic. More...
 
struct  bt_cts_adjust_reason
 "Adjust Reason" field of the Current Time characteristic. More...
 
struct  bt_cts_current_time
 Data structure for the Current Time characteristic. More...
 
struct  bt_cts_client
 Current Time Service client structure. This structure contains status information for the client. More...
 

Typedefs

typedef void(* bt_cts_read_cb) (struct bt_cts_client *cts_c, struct bt_cts_current_time *current_time, int err)
 Read complete callback.
 
typedef void(* bt_cts_notify_cb) (struct bt_cts_client *cts_c, struct bt_cts_current_time *current_time)
 Value notification callback.
 

Functions

int bt_cts_client_init (struct bt_cts_client *cts_c)
 Function for initializing the Current Time Service client.
 
int bt_cts_read_current_time (struct bt_cts_client *cts_c, bt_cts_read_cb func)
 Function for reading the peer's Current Time Service Current Time characteristic.
 
int bt_cts_subscribe_current_time (struct bt_cts_client *cts_c, bt_cts_notify_cb func)
 Subscribe to the current time value change notification.
 
int bt_cts_unsubscribe_current_time (struct bt_cts_client *cts_c)
 Remove the subscription.
 
int bt_cts_handles_assign (struct bt_gatt_dm *dm, struct bt_cts_client *cts_c)
 Function for assigning handles to this instance of cts_c.