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

Go to the source code of this file.

Data Structures

struct  bt_throughput_metrics
 Throughput metrics. More...
 
struct  bt_throughput_cb
 Throughput callback structure. More...
 
struct  bt_throughput
 Throughput structure. More...
 

Macros

#define BT_UUID_THROUGHPUT_CHAR   BT_UUID_DECLARE_16(0x1524)
 Throughput Characteristic UUID.
 
#define BT_UUID_THROUGHPUT_VAL    BT_UUID_128_ENCODE(0x0483dadd, 0x6c9d, 0x6ca9, 0x5d41, 0x03ad4fff4abb)
 
#define BT_UUID_THROUGHPUT    BT_UUID_DECLARE_128(BT_UUID_THROUGHPUT_VAL)
 Throughput Service UUID.
 

Functions

int bt_throughput_init (struct bt_throughput *throughput, const struct bt_throughput_cb *cb)
 Initialize the GATT Throughput Service.
 
int bt_throughput_handles_assign (struct bt_gatt_dm *dm, struct bt_throughput *throughput)
 Assign handles to the Throughput Service instance.
 
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.