@@ -40,10 +40,10 @@ class GattClient;
40
40
* Private interface used to implement the BLE class.
41
41
*
42
42
* 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 .
44
44
*
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
47
47
* access to a concrete implementation of this class defined in the vendor port.
48
48
*
49
49
* @important This class is part of the porting API and is not meant to be used
@@ -76,12 +76,12 @@ class BLEInstanceBase
76
76
/* *
77
77
* Signal to BLE that events needing processing are available.
78
78
*
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
80
80
* ready to be processed in the internal stack or BLE subsystem. As a result
81
81
* of this call, the callback registered by the end user via
82
82
* BLE::onEventsToProcess will be invoked.
83
83
*
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
85
85
* ready to be processed.
86
86
*/
87
87
void signalEventsToProcess (BLE::InstanceID_t id);
@@ -95,19 +95,19 @@ class BLEInstanceBase
95
95
*
96
96
* @param[in] instanceID Identifier of the BLE instance requesting
97
97
* 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
99
99
* when the initialization completes.
100
100
*
101
101
* This is an optional parameter set to NULL when not supplied.
102
102
*
103
- * @return BLE_ERROR_NONE if the initialization procedure was started
103
+ * @return BLE_ERROR_NONE if the initialization procedure started
104
104
* successfully.
105
105
*
106
106
* @post initCallback shall be invoked upon completion of the initialization
107
107
* process.
108
108
*
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
111
111
* initialization process.
112
112
*
113
113
* @see BLE::init()
@@ -133,19 +133,19 @@ class BLEInstanceBase
133
133
* Shutdown the vendor BLE subsystem.
134
134
*
135
135
* 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.
137
137
* Clearing all states may be realized by a call to Gap::reset(),
138
138
* GattClient::reset(), GattServer::reset() and SecurityManager::reset().
139
139
*
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
141
141
* state.
142
142
*
143
143
* @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.
145
145
*
146
146
* @post hasInitialized() shall return false.
147
147
*
148
- * @note This function is invoked by BLE::shutdown() .
148
+ * @note This function is invoked by BLE::shutdown().
149
149
*
150
150
* @see BLE::shutdown() BLE::init() BLE::hasInitialized() Gap::reset()
151
151
* GattClient::reset() GattServer::reset() SecurityManager::reset() .
@@ -234,8 +234,8 @@ class BLEInstanceBase
234
234
virtual const SecurityManager &getSecurityManager (void ) const = 0;
235
235
236
236
/* *
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 .
239
239
*
240
240
* @important This function is deprecated in the BLE class. It will be
241
241
* removed from this interface once it is removed from BLE.
@@ -255,10 +255,10 @@ class BLEInstanceBase
255
255
* Return the instance of the vendor implementation of BLEInstanceBase.
256
256
*
257
257
* @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.
259
259
*
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.
262
262
*/
263
263
extern BLEInstanceBase *createBLEInstance (void );
264
264
0 commit comments