Skip to content

Commit 5178f89

Browse files
author
Amanda Butler
authored
Copy edit GattCallbackParamTypes.h
Copy edit for active voice.
1 parent 91fa78d commit 5178f89

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

features/FEATURE_BLE/ble/GattCallbackParamTypes.h

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
* whether the GattServer has received a write request or a GattClient has
3232
* received a write response.
3333
*
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.
3737
*
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.
4141
*/
4242
struct GattWriteCallbackParams {
4343
/**
@@ -104,7 +104,7 @@ struct GattWriteCallbackParams {
104104
uint16_t offset;
105105

106106
/**
107-
* Status of the GattClient Write operation
107+
* Status of the GattClient Write operation.
108108
*
109109
* @important Reserved for GattClient registered callbacks.
110110
*/
@@ -144,9 +144,9 @@ struct GattWriteCallbackParams {
144144
* whether the GattServer has received a read request or a GattClient has
145145
* received a read response.
146146
*
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.
150150
*/
151151
struct GattReadCallbackParams {
152152
/**
@@ -166,7 +166,7 @@ struct GattReadCallbackParams {
166166

167167
union {
168168
/**
169-
* Length in bytes of the data read .
169+
* Length in bytes of the data read.
170170
*/
171171
uint16_t len;
172172

@@ -175,8 +175,8 @@ struct GattReadCallbackParams {
175175
*
176176
* @important Reserved for GattClient registered callbacks.
177177
*
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.
180180
*/
181181
uint8_t error_code;
182182
};
@@ -189,7 +189,7 @@ struct GattReadCallbackParams {
189189
const uint8_t *data;
190190

191191
/**
192-
* Status of the GattClient Read operation
192+
* Status of the GattClient Read operation.
193193
*
194194
* @important Reserved for GattClient registered callbacks.
195195
*/
@@ -299,9 +299,9 @@ struct GattWriteAuthCallbackParams {
299299
/**
300300
* Authorization result.
301301
*
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.
305305
*/
306306
GattAuthCallbackReply_t authorizationReply;
307307
};
@@ -338,17 +338,17 @@ struct GattReadAuthCallbackParams {
338338
/**
339339
* Authorization result.
340340
*
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.
344344
*/
345345
GattAuthCallbackReply_t authorizationReply;
346346
};
347347

348348
/**
349349
* Handle Value Notification/Indication event.
350350
*
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
352352
* Handle Value Notification or Indication.
353353
*
354354
* The event is passed to callbacks registered by GattClient::onHVX().

0 commit comments

Comments
 (0)