Go to the documentation of this file.
55 #ifndef __BLE_GATTC_H__
56 #define __BLE_GATTC_H__
295 void (*app_gattc_inc_srvc_disc_cb)(uint8_t conn_idx, uint8_t status,
const ble_gattc_incl_disc_t * p_inc_srvc_disc);
299 void (*app_gattc_write_cb)(uint8_t conn_idx, uint8_t status, uint16_t handle);
489 uint16_t
ble_gattc_write(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length,
const uint8_t *p_value);
509 uint16_t
ble_gattc_write_prepare(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length,
const uint8_t *p_value);
549 uint16_t
ble_gattc_write_no_resp(uint8_t conn_idx,
bool signed_write, uint16_t handle, uint16_t length,
const uint8_t *p_value);
uint8_t prop
Value property.
GATTC Notification and Indication value indication.
GATTC write without response structure.
uint16_t handle
Attribute handle.
uint16_t len
Known value: length of the handle (len shall not be set to 0).
#define __ARRAY_EMPTY
Empty Array.
GATTC write attribute value structure.
@ BLE_GATTC_BROWSE_ATTR_VAL
Attribute Value definition.
gattc_browse_attr_char_t attr_char
Information about Characteristic.
#define BLE_ATT_UUID_128_LEN
UUID length: 16 bytes.
uint16_t offset
value offset to start with.
uint16_t count
Characteristic count.
uint16_t handle_value
Handle of the Characteristic Value.
@ BLE_GATTC_BROWSE_NONE
No Attribute Information.
uint16_t ble_gattc_read_multiple(uint8_t conn_idx, const gattc_read_multiple_t *p_param)
Initiate a Read Multiple Characteristic Values procedure.
uint8_t * p_uuid
Service UUID.
uint16_t ble_gattc_write_prepare(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length, const uint8_t *p_value)
Prepare Long/Reliable Write to remote GATT server.
uint8_t attr_type
Attribute type.
uint8_t attr_type
Attribute type.
GATTC Event callback Structures.
uint16_t ble_gattc_included_services_discover(uint8_t conn_idx, uint16_t start_hdl, uint16_t end_hdl)
Discover Included Services on remote GATT server.
read_multiple_t * p_read_multiple
Pointer to the multiple attributes to be read.
GATT characteristic discovery.
uint16_t end_hdl
End handle.
bool signed_write
True if signed write should be used when possible/applicable.
uint16_t ble_gattc_char_desc_discover(uint8_t conn_idx, uint16_t start_hdl, uint16_t end_hdl)
Discover Characteristics Descriptors on remote GATT server.
gatt_attr_t
GATT Client Service Discover Attribute type IDs.
@ BLE_GATTC_BROWSE_ATTR_CHAR
Characteristic Declaration.
uint16_t handle_decl
Handle of the Characteristic Declaration.
GATTC read by characteristic UUID structure.
uint16_t length
Attribute value length.
uint16_t ble_gattc_mtu_exchange(uint8_t conn_idx)
Perform MTU Exchange.
uint8_t uuid_len
Descriptor UUID length.
uint8_t uuid_len
Service UUID length.
uint8_t uuid_len
Characteristic UUID length.
GATTC discovery characteristic structure.
GATTC Browse attribute information.
uint16_t ble_gattc_services_browse(uint8_t conn_idx, const ble_uuid_t *p_srvc_uuid)
Browse all Primary Services or specific Primary Service information on remote GATT server.
uint16_t start_hdl
Included Service start handle.
uint16_t end_hdl
End handle.
gatt_evt_type_t
GATT common events.
uint16_t end_hdl
End handle.
Define the chip configuration.
GATTC Browse service(s) indication.
uint8_t * p_value
Value to write.
uint8_t uuid_len
Service UUID length.
@ BLE_GATTC_BROWSE_INC_SRVC
Included Service information.
uint16_t handle
Attribute handle.
uint8_t uuid_len
Attribute UUID length.
GATT characteristic descriptor discovery.
File that contains error codes.
uint16_t end_hdl
End handle.
uint16_t end_hdl
Included Service end handle.
uint16_t ble_gattc_write(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length, const uint8_t *p_value)
Write (long) Characteristic (Descriptor) Value.
uint8_t * p_value
Value to write.
uint8_t uuid_len
Service UUID length.
uint16_t ble_gattc_primary_services_discover(uint8_t conn_idx, const ble_uuid_t *p_srvc_uuid)
Discover Primary Services on remote GATT server.
uint16_t length
Write length.
uint16_t ble_gattc_write_no_resp(uint8_t conn_idx, bool signed_write, uint16_t handle, uint16_t length, const uint8_t *p_value)
Write Attribute to remote GATT server (without response).
uint16_t offset
Offset of the attribute value.
uint16_t length
Write length.
ble_uuid_t * p_uuid
Characteristic UUID.
uint16_t count
Service count.
uint16_t handle
Attribute handle.
uint16_t ble_gattc_read(uint8_t conn_idx, uint16_t handle, uint16_t offset)
Read Attribute from remote GATT server.
GATTC Browse information about Characteristic.
uint16_t start_hdl
Service start handle.
uint16_t ble_gattc_char_discover(uint8_t conn_idx, uint16_t start_hdl, uint16_t end_hdl, const ble_uuid_t *p_char_uuid)
Discover Characteristics on remote GATT server.
uint8_t attr_type
Attribute type.
ble_uuid_t * p_uuid
Characteristic UUID.
uint8_t * p_value
Pointer to the attribute value data.
uint16_t handle
Attribute handle.
uint8_t * p_uuid
Descriptor UUID.
uint16_t ble_gattc_indicate_cfm(uint8_t conn_idx, uint16_t handle)
Confirm Reception of Indication.
@ BLE_GATTC_BROWSE_ATTR_DESC
Attribute Descriptor.
gatt_evt_type_t type
Event type.
uint8_t * p_uuid
Characteristic UUID.
GATTC Browse information about Included Service.
uint8_t attr_type
Attribute type.
uint16_t start_hdl
Start handle.
uint16_t count
Include count.
gattc_browse_attr_t attr
Information about Attribute.
gattc_browse_inc_srvc_t inc_srvc
Information about Included Service.
uint16_t handle
Attribute handle.
uint8_t * p_uuid
Service UUID.
uint16_t start_hdl
Start handle.
GATTC Browse information about Attribute.
uint8_t uuid_len
Characteristic UUID length.
GATT value Read response.
uint16_t ble_gattc_read_by_uuid(uint8_t conn_idx, uint16_t start_hdl, uint16_t end_hdl, const ble_uuid_t *p_char_uuid)
Read Attribute by UUID.
uint16_t count
Descriptor count.
uint16_t handle_count
Handle count of the multiple attributes to be read.
uint8_t uuid_len
Included Service UUID length.
uint16_t start_hdl
Start handle.
uint16_t attr_hdl
Attribute handle.
uint16_t attr_hdl
Attribute handle.
uint16_t handle
Value handle.
uint16_t length
Attribute value length.
uint16_t handle
Attribute handle.
uint8_t * p_value
Pointer to the attribute value data.
uint16_t ble_gattc_write_execute(uint8_t conn_idx, bool execute)
Execute Reliable/Long Write to remote GATT server.
uint16_t count
Value Count.
uint16_t start_hdl
Start handle.