Skip to content

Commit 25ad0f3

Browse files
author
Amanda Butler
authored
Copy edit BLEInstanceBase.h
Make minor copy edits.
1 parent 96429c5 commit 25ad0f3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

features/FEATURE_BLE/ble/BLEInstanceBase.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ class GattClient;
4040
* Private interface used to implement the BLE class.
4141
*
4242
* The BLE class delegates all its abstract operations to an instance of this
43-
* abstract class which shall be implemented by every vendor port of mbed BLE.
43+
* abstract class, which every vendor port of Mbed BLE shall implement.
4444
*
45-
* Vendor port shall also define an implementation of the freestanding function
46-
* createBLEInstance(). This singleton function is used by BLE API to gain
45+
* The vendor port shall also define an implementation of the freestanding function
46+
* createBLEInstance(). The BLE API uses this singleton function to gain
4747
* access to a concrete implementation of this class defined in the vendor port.
4848
*
4949
* @important This class is part of the porting API and is not meant to be used
@@ -76,12 +76,12 @@ class BLEInstanceBase
7676
/**
7777
* Signal to BLE that events needing processing are available.
7878
*
79-
* This function shall be called by the vendor port whenever there is events
79+
* The vendor port shall call this function whenever there are events
8080
* ready to be processed in the internal stack or BLE subsystem. As a result
8181
* of this call, the callback registered by the end user via
8282
* BLE::onEventsToProcess will be invoked.
8383
*
84-
* @param[in] id: Identifier of the BLE instance which does have events to
84+
* @param[in] id: Identifier of the BLE instance, which does have events to
8585
* ready to be processed.
8686
*/
8787
void signalEventsToProcess(BLE::InstanceID_t id);
@@ -95,19 +95,19 @@ class BLEInstanceBase
9595
*
9696
* @param[in] instanceID Identifier of the BLE instance requesting
9797
* initialization.
98-
* @param[in] initCallback Callback which shall be invoke by the vendor port
98+
* @param[in] initCallback Callback which the vendor port shall invoke
9999
* when the initialization completes.
100100
*
101101
* This is an optional parameter set to NULL when not supplied.
102102
*
103-
* @return BLE_ERROR_NONE if the initialization procedure was started
103+
* @return BLE_ERROR_NONE if the initialization procedure started
104104
* successfully.
105105
*
106106
* @post initCallback shall be invoked upon completion of the initialization
107107
* process.
108108
*
109-
* @post hasInitialized() shall return false until the initialization
110-
* complete and it shall return true after succesful completion of the
109+
* @post hasInitialized() shall return false until the initialization is
110+
* complete, and it shall return true after succesful completion of the
111111
* initialization process.
112112
*
113113
* @see BLE::init()
@@ -133,19 +133,19 @@ class BLEInstanceBase
133133
* Shutdown the vendor BLE subsystem.
134134
*
135135
* This operation includes purging the stack of GATT and GAP state and
136-
* clearing all state from other BLE components such as the SecurityManager.
136+
* clearing all state from other BLE components, such as the SecurityManager.
137137
* Clearing all states may be realized by a call to Gap::reset(),
138138
* GattClient::reset(), GattServer::reset() and SecurityManager::reset().
139139
*
140-
* BLE::init() must be called afterwards to re-instantiate services and GAP
140+
* BLE::init() must be called afterward to reinstantiate services and GAP
141141
* state.
142142
*
143143
* @return BLE_ERROR_NONE if the underlying stack and all other services of
144-
* the BLE API were shutdown correctly.
144+
* the BLE API were shut down correctly.
145145
*
146146
* @post hasInitialized() shall return false.
147147
*
148-
* @note This function is invoked by BLE::shutdown() .
148+
* @note This function is invoked by BLE::shutdown().
149149
*
150150
* @see BLE::shutdown() BLE::init() BLE::hasInitialized() Gap::reset()
151151
* GattClient::reset() GattServer::reset() SecurityManager::reset() .
@@ -234,8 +234,8 @@ class BLEInstanceBase
234234
virtual const SecurityManager &getSecurityManager(void) const = 0;
235235

236236
/**
237-
* Process pending events present in the vendor subsystem then put the MCU
238-
* to sleep until it gets woken up by an external source.
237+
* Process pending events present in the vendor subsystem; then, put the MCU
238+
* to sleep until an external source wakes it up.
239239
*
240240
* @important This function is deprecated in the BLE class. It will be
241241
* removed from this interface once it is removed from BLE.
@@ -255,10 +255,10 @@ class BLEInstanceBase
255255
* Return the instance of the vendor implementation of BLEInstanceBase.
256256
*
257257
* @important Contrary to its name, this function does not return a new instance
258-
* at each call. It rather act like an accessor to a singleton.
258+
* at each call. It rather acts like an accessor to a singleton.
259259
*
260-
* @important An implementation for this function must be provided by the vendor
261-
* library, otherwise there will be a linker error.
260+
* @important The vendor library must provide an implementation for this function
261+
* library. Otherwise, there will be a linker error.
262262
*/
263263
extern BLEInstanceBase *createBLEInstance(void);
264264

0 commit comments

Comments
 (0)