@@ -712,8 +712,8 @@ typedef uint8_t (*bt_gatt_attr_func_t)(const struct bt_gatt_attr *attr,
712712 *
713713 * Iterate attributes in the given range matching given UUID and/or data.
714714 *
715- * @param start_handle Start handle.
716- * @param end_handle End handle. Often set to start_handle + attr_count or
715+ * @param start_handle Start attribute handle.
716+ * @param end_handle End attribute handle. Often set to start_handle + attr_count or
717717 * BT_ATT_LAST_ATTRIBUTE_HANDLE.
718718 * @param uuid UUID to match, passing NULL skips UUID matching.
719719 * @param attr_data Attribute data to match, passing NULL skips data matching.
@@ -731,8 +731,8 @@ void bt_gatt_foreach_attr_type(uint16_t start_handle, uint16_t end_handle,
731731 *
732732 * Iterate attributes in the given range.
733733 *
734- * @param start_handle Start handle.
735- * @param end_handle End handle.
734+ * @param start_handle Starting attribute handle.
735+ * @param end_handle Ending attribute handle.
736736 * @param func Callback function.
737737 * @param user_data Data to pass to the callback.
738738 */
@@ -1827,15 +1827,20 @@ struct bt_gatt_discover_params {
18271827 struct {
18281828 /** Include service attribute declaration handle */
18291829 uint16_t attr_handle ;
1830- /** Included service start handle */
1830+ /** Starting attribute handle for included service */
18311831 uint16_t start_handle ;
1832- /** Included service end handle */
1832+ /** Ending attribute handle for included service */
18331833 uint16_t end_handle ;
18341834 } _included ;
1835- /** Discover start handle */
1835+ /** Starting attribute handle to begin discovery */
18361836 uint16_t start_handle ;
18371837 };
1838- /** Discover end handle */
1838+ /** @brief Ending attribute handle to stop discovery at
1839+ *
1840+ * @note When discovery begins this can be set to
1841+ * @ref BT_ATT_LAST_ATTRIBUTE_HANDLE to discover all attributes
1842+ * in the service.
1843+ */
18391844 uint16_t end_handle ;
18401845 /** Discover type */
18411846 uint8_t type ;
@@ -1940,9 +1945,27 @@ struct bt_gatt_read_params {
19401945 bool variable ;
19411946 } multiple ;
19421947 struct {
1943- /** Attribute handle to start reading from. */
1948+ /** @brief Requested start attribute handle number.
1949+ *
1950+ * @details The starting handle is set to the starting point of the range
1951+ * over which this read should be performed. For example, this could be
1952+ * set to @ref BT_ATT_FIRST_ATTRIBUTE_HANDLE to set the starting point of
1953+ * the range at the beginning of the GATT database, or to the starting
1954+ * handle of a service after discovery.
1955+ *
1956+ * This value is automatically incremented by the stack after
1957+ * processing each matching handle-value pair returned by the server.
1958+ */
19441959 uint16_t start_handle ;
1945- /** Attribute handle to stop reading at. */
1960+ /** @brief Requested end attribute handle number.
1961+ *
1962+ * @details The end handle is set to the ending point of the range over
1963+ * which this read should be performed. For example, this could be set to
1964+ * @ref BT_ATT_LAST_ATTRIBUTE_HANDLE to set the ending point of the range
1965+ * at the end of the GATT database, or to the end handle for service after
1966+ * discovery, where the end_handle is available in the
1967+ * @ref bt_gatt_service_val.
1968+ */
19461969 uint16_t end_handle ;
19471970 /** 2 or 16 octet UUID. */
19481971 const struct bt_uuid * uuid ;
0 commit comments