Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
GATT Read parameters. More...
#include <gatt.h>
Data Fields | |
bt_gatt_read_func_t | func |
Read attribute callback. | |
size_t | handle_count |
If equals to 1 single.handle and single.offset are used. | |
union { | |
struct { | |
uint16_t handle | |
Attribute handle. More... | |
uint16_t offset | |
Attribute data offset. More... | |
} single | |
struct { | |
uint16_t * handles | |
Attribute handles to read with Read Multiple Characteristic Values. More... | |
bool variable | |
If true use Read Multiple Variable Length Characteristic Values procedure. More... | |
} multiple | |
struct { | |
uint16_t start_handle | |
First requested handle number. More... | |
uint16_t end_handle | |
Last requested handle number. More... | |
const struct bt_uuid * uuid | |
2 or 16 octet UUID. More... | |
} by_uuid | |
}; | |
enum bt_att_chan_opt | chan_opt |
GATT Read parameters.
union { ... } bt_gatt_read_params::@81 |
struct { ... } bt_gatt_read_params::by_uuid |
enum bt_att_chan_opt bt_gatt_read_params::chan_opt |
uint16_t bt_gatt_read_params::end_handle |
Last requested handle number.
bt_gatt_read_func_t bt_gatt_read_params::func |
Read attribute callback.
uint16_t bt_gatt_read_params::handle |
Attribute handle.
size_t bt_gatt_read_params::handle_count |
If equals to 1 single.handle and single.offset are used.
If greater than 1 multiple.handles are used. If equals to 0 by_uuid is used for Read Using Characteristic UUID.
uint16_t* bt_gatt_read_params::handles |
Attribute handles to read with Read Multiple Characteristic Values.
struct { ... } bt_gatt_read_params::multiple |
uint16_t bt_gatt_read_params::offset |
Attribute data offset.
struct { ... } bt_gatt_read_params::single |
uint16_t bt_gatt_read_params::start_handle |
First requested handle number.
const struct bt_uuid* bt_gatt_read_params::uuid |
2 or 16 octet UUID.
bool bt_gatt_read_params::variable |
If true use Read Multiple Variable Length Characteristic Values procedure.
The values of the set of attributes may be of variable or unknown length. If false use Read Multiple Characteristic Values procedure. The values of the set of attributes must be of a known fixed length, with the exception of the last value that can have a variable length.