ble/gattc/registry.h header reference
[Bluetooth Low Energy library module]
The source code of this header can be browsed online.
Description [link]
Registry of a service in a GATT client.
Members [link]
Types [link]
- struct ble_gattc_char_inst_s
- struct ble_gattc_include_inst_s
- typedef [...] * ble_gattc_registry_list_item_t
- struct ble_gattc_registry_s
- struct ble_gattc_service_inst_s
Functions [link]
- error_t ble_gattc_char_read(struct ble_gattc_registry_s *reg, uint8_t srv_instance, uint8_t char_index, uint8_t char_instance)
- error_t ble_gattc_char_write(struct ble_gattc_registry_s *reg, uint8_t srv_instance, uint8_t char_index, uint8_t char_instance, const void *data, size_t size, enum ble_gattc_subscription_mode_e mode)
- error_t ble_gattc_register(struct ble_gattc_registry_s *reg, struct ble_gattc_s *client, const struct ble_gattc_service_s *srv)
- error_t ble_gattc_unregister(struct ble_gattc_registry_s *reg)
Members detail [link]
#define BLE_GATTC_REGISTRY_H [link]
This macro is declared in ble/gattc/registry.h source file, line 21.
#define GCT_CONTAINER_ALGO_ble_gattc_registry_list [link]
This macro is declared in ble/gattc/registry.h source file, line 42.
struct ble_gattc_char_inst_s [link]
This struct is declared in ble/gattc/registry.h source file, line 46.
Field | Description |
---|---|
uint8_t handle_base_offset; | From service Attribute |
uint8_t char_index; | In descriptor char array |
uint8_t handle_count:4; | Total handle count in char |
uint8_t cccd_offset:4; | Offset between Characteristic Attribute and CCCD Attribute handles |
uint8_t instance_index:4; | Instance of characteristic at index char_index |
error_t ble_gattc_char_read(struct ble_gattc_registry_s *reg, uint8_t srv_instance, uint8_t char_index, uint8_t char_instance) [link]
This function is declared in ble/gattc/registry.h source file, line 92.
error_t ble_gattc_char_write(struct ble_gattc_registry_s *reg, uint8_t srv_instance, uint8_t char_index, uint8_t char_instance, const void *data, size_t size, enum ble_gattc_subscription_mode_e mode) [link]
This function is declared in ble/gattc/registry.h source file, line 98.
struct ble_gattc_include_inst_s [link]
This struct is declared in ble/gattc/registry.h source file, line 61.
Field | Description |
---|---|
struct ble_uuid_s type; | |
uint16_t handle; |
error_t ble_gattc_register(struct ble_gattc_registry_s *reg, struct ble_gattc_s *client, const struct ble_gattc_service_s *srv) [link]
This function is declared in ble/gattc/registry.h source file, line 102.
typedef void * ble_gattc_registry_list_entry_t [link]
This typedef is declared in ble/gattc/registry.h source file, line 85.
typedef struct ble_gattc_registry_s * ble_gattc_registry_list_item_t [link]
This typedef is declared in ble/gattc/registry.h source file, line 85.
typedef void * ble_gattc_registry_list_root_t [link]
This typedef is declared in ble/gattc/registry.h source file, line 85.
struct ble_gattc_registry_s [link]
This struct is declared in ble/gattc/service.h source file, line 37.
Field | Description |
---|---|
const struct ble_gattc_service_s * desc; | |
struct ble_gattc_service_inst_s * service; | |
size_t service_count; |
See also ble_gattc_registry_list_item_t.
struct ble_gattc_service_inst_s [link]
This struct is declared in ble/gattc/registry.h source file, line 67.
Field | Description |
---|---|
uint16_t service_handle; | |
uint16_t end_group_handle; | |
struct ble_gattc_char_inst_s * characteristic; | |
size_t characteristic_count; | |
struct ble_gattc_include_inst_s * include; | |
size_t include_count; |
error_t ble_gattc_unregister(struct ble_gattc_registry_s *reg) [link]
This function is declared in ble/gattc/registry.h source file, line 104.