Skip to content

Commit 6e20887

Browse files
author
Amanda Butler
authored
Copy edit GattServer.h
Copy edit, mostly for consistent tense and hyphenation.
1 parent 5178f89 commit 6e20887

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

features/FEATURE_BLE/ble/GattServer.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class GattServer {
9999
}
100100

101101
/*
102-
* The following functions are meant to be overridden in the platform-specific sub-class.
102+
* The following functions are meant to be overridden in the platform-specific subclass.
103103
*/
104104
public:
105105

@@ -129,7 +129,7 @@ class GattServer {
129129
* @param[in,out] lengthP
130130
* Length of the buffer being supplied. If the attribute
131131
* value is longer than the size of the supplied buffer,
132-
* this variable will hold upon return the total attribute value length
132+
* this variable holds upon return the total attribute value length
133133
* (excluding offset). The application may use this
134134
* information to allocate a suitable buffer size.
135135
*
@@ -156,7 +156,7 @@ class GattServer {
156156
* @param[in,out] lengthP
157157
* Length of the buffer being supplied. If the attribute
158158
* value is longer than the size of the supplied buffer,
159-
* this variable will hold upon return the total attribute value length
159+
* this variable holds upon return the total attribute value length
160160
* (excluding offset). The application may use this
161161
* information to allocate a suitable buffer size.
162162
*
@@ -287,12 +287,12 @@ class GattServer {
287287
}
288288

289289
/*
290-
* APIs with non-virtual implementations.
290+
* APIs with nonvirtual implementations.
291291
*/
292292
public:
293293
/**
294294
* Add a callback for the GATT event DATA_SENT (which is triggered when
295-
* updates are sent out by GATT in the form of notifications).
295+
* GATT sends updates in the form of notifications).
296296
*
297297
* @param[in] callback
298298
* Event handler being registered.
@@ -309,7 +309,7 @@ class GattServer {
309309
}
310310

311311
/**
312-
* Same as GattServer::onDataSent(), but allows the possibility to add an object
312+
* Same as GattServer::onDataSent() but it allows the possibility to add an object
313313
* reference and member function as handler for DATA_SENT event
314314
* callbacks.
315315
*
@@ -359,8 +359,8 @@ class GattServer {
359359
}
360360

361361
/**
362-
* Same as GattServer::onDataWritten(), but allows the possibility to add an object
363-
* reference and member function as handler for data written event
362+
* Same as GattServer::onDataWritten() but it allows the possibility to add an object
363+
* reference and member function as a handler for data written event
364364
* callbacks.
365365
*
366366
* @param[in] objPtr
@@ -389,8 +389,8 @@ class GattServer {
389389
}
390390

391391
/**
392-
* Setup a callback to be invoked on the peripheral when an attribute is
393-
* being read by a remote client.
392+
* Set up a callback to be invoked on the peripheral when a remote client is
393+
* reading an attribute.
394394
*
395395
* @param[in] callback
396396
* Event handler being registered.
@@ -422,7 +422,7 @@ class GattServer {
422422
}
423423

424424
/**
425-
* Same as GattServer::onDataRead(), but allows the possibility to add an object
425+
* Same as GattServer::onDataRead() but it allows the possibility to add an object
426426
* reference and member function as handler for data read event
427427
* callbacks.
428428
*
@@ -457,16 +457,16 @@ class GattServer {
457457
}
458458

459459
/**
460-
* Setup a callback to be invoked to notify the user application that the
461-
* GattServer instance is about to shutdown (possibly as a result of a call
460+
* Set up a callback to be invoked to notify the user application that the
461+
* GattServer instance is about to shut down (possibly as a result of a call
462462
* to BLE::shutdown()).
463463
*
464464
* @param[in] callback
465465
* Event handler being registered.
466466
*
467467
* @note It is possible to chain together multiple onShutdown callbacks
468468
* (potentially from different modules of an application) to be notified
469-
* before the GattServer is shutdown.
469+
* before the GattServer is shut down.
470470
*
471471
* @note It is also possible to set up a callback into a member function of
472472
* some object.
@@ -478,7 +478,7 @@ class GattServer {
478478
}
479479

480480
/**
481-
* Same as GattServer::onShutdown(), but allows the possibility to add an object
481+
* Same as GattServer::onShutdown() but it allows the possibility to add an object
482482
* reference and member function as handler for shutdown event
483483
* callbacks.
484484
*
@@ -616,13 +616,13 @@ class GattServer {
616616
public:
617617
/**
618618
* Notify all registered onShutdown callbacks that the GattServer is
619-
* about to be shutdown and clear all GattServer state of the
619+
* about to be shut down and clear all GattServer state of the
620620
* associated object.
621621
*
622622
* This function is meant to be overridden in the platform-specific
623-
* sub-class. Nevertheless, the sub-class is only expected to reset its
624-
* state and not the data held in GattServer members. This shall be achieved
625-
* by a call to GattServer::reset() from the sub-class' reset()
623+
* subclass. Nevertheless, the subclass only resets its
624+
* state and not the data held in GattServer members. This is achieved
625+
* by a call to GattServer::reset() from the subclass' reset()
626626
* implementation.
627627
*
628628
* @return BLE_ERROR_NONE on success.

0 commit comments

Comments
 (0)