7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_NUS_H_
8#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_NUS_H_
23#define BT_UUID_NUS_SRV_VAL \
24 BT_UUID_128_ENCODE(0x6e400001, 0xb5a3, 0xf393, 0xe0a9, 0xe50e24dcca9e)
25#define BT_UUID_NUS_RX_CHAR_VAL \
26 BT_UUID_128_ENCODE(0x6e400002, 0xb5a3, 0xf393, 0xe0a9, 0xe50e24dcca9e)
27#define BT_UUID_NUS_TX_CHAR_VAL \
28 BT_UUID_128_ENCODE(0x6e400003, 0xb5a3, 0xf393, 0xe0a9, 0xe50e24dcca9e)
35#define BT_NUS_INST_DEFINE(_name) \
36 Z_INTERNAL_BT_NUS_INST_DEFINE(_name)
struct _snode sys_snode_t
Single-linked list node structure.
Definition: slist.h:39
static int bt_nus_cb_register(struct bt_nus_cb *cb, void *ctx)
NUS server callback register.
Definition: nus.h:107
int bt_nus_inst_cb_register(struct bt_nus_inst *inst, struct bt_nus_cb *cb, void *ctx)
NUS server Instance callback register.
static int bt_nus_send(struct bt_conn *conn, const void *data, uint16_t len)
Send Data over NUS.
Definition: nus.h:125
int bt_nus_inst_send(struct bt_conn *conn, struct bt_nus_inst *inst, const void *data, uint16_t len)
Send Data to NUS Instance.
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Callbacks for getting notified on NUS Service occurrences.
Definition: nus.h:39
void(* notif_enabled)(bool enabled, void *ctx)
Notifications subscription changed.
Definition: nus.h:46
void * ctx
Internal member.
Definition: nus.h:58
void(* received)(struct bt_conn *conn, const void *data, uint16_t len, void *ctx)
Received Data.
Definition: nus.h:55