ble/gattc/service.h header reference
[Bluetooth Low Energy library module]
The source code of this header can be browsed online.
Description [link]
A GATT Client must provide service declarations for each registry entry. This headers defined data structures for static declaration of services to look after.
Members [link]
Types [link]
- enum ble_gattc_characteristic_flag_e
- struct ble_gattc_characteristic_s
- enum ble_gattc_descriptor_flag_e
- struct ble_gattc_descriptor_s
- struct ble_gattc_service_s
- enum ble_gattc_subscription_mode_e
Members detail [link]
#define BLE_GATTC_CHAR(type_, flags_, desc_...) [link]
This macro is declared in ble/gattc/service.h source file, line 102.
#define BLE_GATTC_SERVICE(name_, flags_, type_, chars_...) [link]
This macro is declared in ble/gattc/service.h source file, line 62.
#define BLE_GATTC_SERVICE_H [link]
This macro is declared in ble/gattc/service.h source file, line 21.
enum ble_gattc_characteristic_flag_e [link]
This enum is declared in ble/gattc/service.h source file, line 72.
Identifier | Description |
---|---|
BLE_GATTC_CHAR_REQUIRED | |
BLE_GATTC_CHAR_UNIQUE | |
BLE_GATTC_CHAR_READ |
struct ble_gattc_characteristic_s [link]
This struct is declared in ble/gattc/service.h source file, line 86.
Field | Description |
---|---|
const struct ble_uuid_s * type; | |
const struct ble_gattc_descriptor_s * descriptor; | |
uint16_t max_size; | |
uint16_t descriptor_count:6; | |
uint16_t subscription_mode:2; | |
uint16_t max_instance_count:5; | |
uint16_t flags:3; | |
void (*on_characteristic_data)(struct ble_gattc_registry_s *reg, uint8_t char_index, uint8_t instance_index, const uint8_t *value, size_t size) ; | |
void (*on_subscription_done)(struct ble_gattc_registry_s *reg, enum ble_gattc_subscription_mode_e mode) ; |
enum ble_gattc_descriptor_flag_e [link]
This enum is declared in ble/gattc/service.h source file, line 112.
Identifier | Description |
---|---|
BLE_GATTC_DESCRIPTOR_REQUIRED | |
BLE_GATTC_DESCRIPTOR_READ |
struct ble_gattc_descriptor_s [link]
This struct is declared in ble/gattc/service.h source file, line 118.
struct ble_gattc_service_s [link]
This struct is declared in ble/gattc/service.h source file, line 50.
Field | Description |
---|---|
const struct ble_uuid_s * type; | |
const struct ble_gattc_characteristic_s * characteristic; | |
uint8_t characteristic_count; | |
uint8_t flags; | |
void (*on_error)(struct ble_gattc_registry_s *reg, uint8_t char_index, uint8_t instance_index, uint8_t action, uint8_t att_error) ; | |
void (*on_enumeration_done)(struct ble_gattc_registry_s *reg) ; |
enum ble_gattc_subscription_mode_e [link]
This enum is declared in ble/gattc/service.h source file, line 79.
Identifier | Description |
---|---|
BLE_GATTC_CHAR_SUBSCRIBE_NONE | |
BLE_GATTC_CHAR_SUBSCRIBE_NOTIFICATION | |
BLE_GATTC_CHAR_SUBSCRIBE_INDICATION |