7#ifndef BT_THROUGHPUT_H_
8#define BT_THROUGHPUT_H_
17#include <zephyr/bluetooth/uuid.h>
18#include <zephyr/bluetooth/conn.h>
87#define BT_UUID_THROUGHPUT_CHAR BT_UUID_DECLARE_16(0x1524)
89#define BT_UUID_THROUGHPUT_VAL \
90 BT_UUID_128_ENCODE(0x0483dadd, 0x6c9d, 0x6ca9, 0x5d41, 0x03ad4fff4abb)
93#define BT_UUID_THROUGHPUT \
94 BT_UUID_DECLARE_128(BT_UUID_THROUGHPUT_VAL)
147 const uint8_t *data, uint16_t len);
int bt_throughput_read(struct bt_throughput *throughput)
Read data from the server.
int bt_throughput_write(struct bt_throughput *throughput, const uint8_t *data, uint16_t len)
Write data to the server.
int bt_throughput_handles_assign(struct bt_gatt_dm *dm, struct bt_throughput *throughput)
Assign handles to the Throughput Service instance.
int bt_throughput_init(struct bt_throughput *throughput, const struct bt_throughput_cb *cb)
Initialize the GATT Throughput Service.
uint8_t(* data_read)(const struct bt_throughput_metrics *met)
Data read callback.
Definition throughput.h:50
void(* data_send)(const struct bt_throughput_metrics *met)
Data send callback.
Definition throughput.h:68
void(* data_received)(const struct bt_throughput_metrics *met)
Data received callback.
Definition throughput.h:59
Throughput callback structure.
Definition throughput.h:39
uint32_t write_count
Definition throughput.h:29
uint32_t write_rate
Definition throughput.h:35
uint32_t write_len
Definition throughput.h:32
Throughput metrics.
Definition throughput.h:26
struct bt_throughput_cb * cb
Definition throughput.h:80
struct bt_gatt_read_params read_params
Definition throughput.h:77
uint16_t char_handle
Definition throughput.h:74
struct bt_conn * conn
Definition throughput.h:83
Throughput structure.
Definition throughput.h:72