31
31
* whether the GattServer has received a write request or a GattClient has
32
32
* received a write response.
33
33
*
34
- * @important The fields offset, len and data are only populated by the
35
- * GattServer when it has received a write request. Those fields shall not be
36
- * used by callbacks attached to the GattClient .
34
+ * @important The GattServer only populates the fields offset, len and data
35
+ * when it has received a write request. Callbacks attached to the GattClient
36
+ * do not use those fields .
37
37
*
38
- * @important The fields status and error_code are only populated by the
39
- * GattClient when it has received a write response. Those fields shall not be
40
- * used by callbacks attached to the GattServer .
38
+ * @important The GattClient only populates the fields status and error_code
39
+ * when it has received a write response. Callbacks attached to the GattServer
40
+ * do not use those fields .
41
41
*/
42
42
struct GattWriteCallbackParams {
43
43
/**
@@ -104,7 +104,7 @@ struct GattWriteCallbackParams {
104
104
uint16_t offset ;
105
105
106
106
/**
107
- * Status of the GattClient Write operation
107
+ * Status of the GattClient Write operation.
108
108
*
109
109
* @important Reserved for GattClient registered callbacks.
110
110
*/
@@ -144,9 +144,9 @@ struct GattWriteCallbackParams {
144
144
* whether the GattServer has received a read request or a GattClient has
145
145
* received a read response.
146
146
*
147
- * @important The fields status and error_code are only populated by the
148
- * GattClient when it has received a read response. Those fields shall not be
149
- * used by callbacks attached to the GattServer .
147
+ * @important The GattClient only populates the fields status and error_code
148
+ * when it has received a read response. Callbacks attached to the GattServer
149
+ * do not use those fields .
150
150
*/
151
151
struct GattReadCallbackParams {
152
152
/**
@@ -166,7 +166,7 @@ struct GattReadCallbackParams {
166
166
167
167
union {
168
168
/**
169
- * Length in bytes of the data read .
169
+ * Length in bytes of the data read.
170
170
*/
171
171
uint16_t len ;
172
172
@@ -175,8 +175,8 @@ struct GattReadCallbackParams {
175
175
*
176
176
* @important Reserved for GattClient registered callbacks.
177
177
*
178
- * @important set if status is not equal to BLE_ERROR_NONE otherwise
179
- * this field shall be interpreted as len.
178
+ * @important set if status is not equal to BLE_ERROR_NONE; otherwise,
179
+ * this field is interpreted as len.
180
180
*/
181
181
uint8_t error_code ;
182
182
};
@@ -189,7 +189,7 @@ struct GattReadCallbackParams {
189
189
const uint8_t * data ;
190
190
191
191
/**
192
- * Status of the GattClient Read operation
192
+ * Status of the GattClient Read operation.
193
193
*
194
194
* @important Reserved for GattClient registered callbacks.
195
195
*/
@@ -299,9 +299,9 @@ struct GattWriteAuthCallbackParams {
299
299
/**
300
300
* Authorization result.
301
301
*
302
- * This parameter shall be set by the callback . If the value is set to
303
- * AUTH_CALLBACK_REPLY_SUCCESS then the write request will be accepted
304
- * otherwise an error code will be returned to the peer client.
302
+ * The callback sets this parameter . If the value is set to
303
+ * AUTH_CALLBACK_REPLY_SUCCESS, then the write request is accepted;
304
+ * otherwise, an error code is returned to the peer client.
305
305
*/
306
306
GattAuthCallbackReply_t authorizationReply ;
307
307
};
@@ -338,17 +338,17 @@ struct GattReadAuthCallbackParams {
338
338
/**
339
339
* Authorization result.
340
340
*
341
- * This parameter shall be set by the callback . If the value is set to
342
- * AUTH_CALLBACK_REPLY_SUCCESS then the read request will be accepted
343
- * otherwise an error code will be returned to the peer client.
341
+ * The callback sets this parameter . If the value is set to
342
+ * AUTH_CALLBACK_REPLY_SUCCESS, then the read request is accepted;
343
+ * otherwise, an error code is returned to the peer client.
344
344
*/
345
345
GattAuthCallbackReply_t authorizationReply ;
346
346
};
347
347
348
348
/**
349
349
* Handle Value Notification/Indication event.
350
350
*
351
- * This type of event is generated by the GattClient upon the reception of a
351
+ * The GattClient generates this type of event upon the reception of a
352
352
* Handle Value Notification or Indication.
353
353
*
354
354
* The event is passed to callbacks registered by GattClient::onHVX().
0 commit comments