Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
inst.h File Reference

Go to the source code of this file.

Data Structures

struct  bt_nus_inst
 

Macros

#define BT_UUID_NUS_SERVICE   BT_UUID_DECLARE_128(BT_UUID_NUS_SRV_VAL)
 
#define BT_UUID_NUS_TX_CHAR   BT_UUID_DECLARE_128(BT_UUID_NUS_TX_CHAR_VAL)
 
#define BT_UUID_NUS_RX_CHAR   BT_UUID_DECLARE_128(BT_UUID_NUS_RX_CHAR_VAL)
 

Functions

ssize_t nus_bt_chr_write (struct bt_conn *conn, const struct bt_gatt_attr *attr, const void *buf, uint16_t len, uint16_t offset, uint8_t flags)
 Required as the service may be instantiated outside of the module.
 
void nus_ccc_cfg_changed (const struct bt_gatt_attr *attr, uint16_t value)
 

Macro Definition Documentation

◆ BT_UUID_NUS_RX_CHAR

#define BT_UUID_NUS_RX_CHAR   BT_UUID_DECLARE_128(BT_UUID_NUS_RX_CHAR_VAL)

◆ BT_UUID_NUS_SERVICE

#define BT_UUID_NUS_SERVICE   BT_UUID_DECLARE_128(BT_UUID_NUS_SRV_VAL)

◆ BT_UUID_NUS_TX_CHAR

#define BT_UUID_NUS_TX_CHAR   BT_UUID_DECLARE_128(BT_UUID_NUS_TX_CHAR_VAL)

Function Documentation

◆ nus_bt_chr_write()

ssize_t nus_bt_chr_write ( struct bt_conn *  conn,
const struct bt_gatt_attr attr,
const void *  buf,
uint16_t  len,
uint16_t  offset,
uint8_t  flags 
)

Required as the service may be instantiated outside of the module.

◆ nus_ccc_cfg_changed()

void nus_ccc_cfg_changed ( const struct bt_gatt_attr attr,
uint16_t  value 
)