Collaboration diagram for Functions:Functions | |
| uint16_t | ble_gattc_mtu_exchange (uint8_t conn_idx) |
| Perform MTU Exchange. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| uint16_t | ble_gattc_read (uint8_t conn_idx, uint16_t handle, uint16_t offset) |
| Read Attribute from remote GATT server. More... | |
| 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. More... | |
| uint16_t | ble_gattc_read_multiple (uint8_t conn_idx, const ble_gattc_read_multiple_t *p_param) |
| Initiate a Read Multiple Characteristic Values procedure. More... | |
| 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. More... | |
| 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. More... | |
| uint16_t | ble_gattc_write_execute (uint8_t conn_idx, bool execute) |
| Execute Reliable/Long Write to remote GATT server. More... | |
| 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). More... | |
| uint16_t | ble_gattc_indicate_cfm (uint8_t conn_idx, uint16_t handle) |
| Confirm Reception of Indication. More... | |
| 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.
| [in] | conn_idx | Current connection index. |
| [in] | start_hdl | Start handle. |
| [in] | end_hdl | End handle. |
| SDK_SUCCESS | Successfully start the Descriptor Discovery procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| 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.
| [in] | conn_idx | Current connection index. |
| [in] | start_hdl | Start handle. |
| [in] | end_hdl | End handle. |
| [in] | p_char_uuid | Pointer to Characteristic UUID.If it is NULL, all characteristics are returned. |
| SDK_SUCCESS | Successfully start the Characteristic Discovery procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| 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.
| [in] | conn_idx | Current connection index. |
| [in] | start_hdl | Start handle. |
| [in] | end_hdl | End handle. |
| SDK_SUCCESS | Successfully start the Relationship Discovery procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| uint16_t ble_gattc_indicate_cfm | ( | uint8_t | conn_idx, |
| uint16_t | handle | ||
| ) |
Confirm Reception of Indication.
| [in] | conn_idx | Current connection index. |
| [in] | handle | Value handle. |
| SDK_SUCCESS | Successfully send indication confirm. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| uint16_t ble_gattc_mtu_exchange | ( | uint8_t | conn_idx | ) |
Perform MTU Exchange.
| [in] | conn_idx | Current connection index. |
| SDK_SUCCESS | Successfully send an MTU Exchange request. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| 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.
| [in] | conn_idx | Current connection index. |
| [in] | p_srvc_uuid | Pointer to Service UUID. If it is NULL, all Primary Services will be returned. |
| SDK_SUCCESS | Successfully start the Primary Service Discovery procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| uint16_t ble_gattc_read | ( | uint8_t | conn_idx, |
| uint16_t | handle, | ||
| uint16_t | offset | ||
| ) |
Read Attribute from remote GATT server.
| [in] | conn_idx | Current connection index. |
| [in] | handle | Attribute handle. |
| [in] | offset | Value offset to start with. |
| SDK_SUCCESS | Successfully start the Read (Long) procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| 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.
| [in] | conn_idx | Current connection index. |
| [in] | start_hdl | Start handle. |
| [in] | end_hdl | End handle. |
| [in] | p_char_uuid | Pointer to Characteristic UUID. |
| SDK_SUCCESS | Successfully start the Read using Characteristic UUID procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| uint16_t ble_gattc_read_multiple | ( | uint8_t | conn_idx, |
| const ble_gattc_read_multiple_t * | p_param | ||
| ) |
Initiate a Read Multiple Characteristic Values procedure.
| [in] | conn_idx | Current connection index. |
| [in] | p_param | Pointer to the parameters of the value. |
| SDK_SUCCESS | Successfully start the Read Multiple Characteristic Values procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| 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.
| [in] | conn_idx | Current connection index. |
| [in] | p_srvc_uuid | Pointer to Service UUID. If it is NULL, all services will be returned. |
| SDK_SUCCESS | Successfully start the Browse Service(s) procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| 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.
| [in] | conn_idx | Current connection index. |
| [in] | handle | The handle of the attribute to be written. |
| [in] | offset | Offset into the attribute value to be written. |
| [in] | length | Length of the value data in bytes. |
| [in] | p_value | Pointer to the value data. |
| SDK_SUCCESS | Successfully start the Write procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| uint16_t ble_gattc_write_execute | ( | uint8_t | conn_idx, |
| bool | execute | ||
| ) |
Execute Reliable/Long Write to remote GATT server.
| [in] | conn_idx | Current connection index. |
| [in] | execute | True if data shall be written; false if cancel all prepared writes. |
| SDK_SUCCESS | Successfully send an Execute Write request. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| 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).
| [in] | conn_idx | Current connection index. |
| [in] | handle | Attribute handle. |
| [in] | signed_write | True if signed write should be used, false write without response. |
| [in] | length | Value length. |
| [in] | p_value | Value data. |
| SDK_SUCCESS | Successfully start the (Signed) Write Without Response procedure. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |
| 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.
| [in] | conn_idx | Current connection index. |
| [in] | handle | Attribute handle. |
| [in] | offset | Value offset to start with. |
| [in] | length | Value length. |
| [in] | p_value | Value data. |
| SDK_SUCCESS | Successfully send a Prepare Write request. |
| SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
| SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
| SDK_ERR_NO_RESOURCES | Not enough resources. |