Skip to content

Commit 82f669b

Browse files
committed
BLE: Fix doxygen warnings.
Replace @Important tag by @attention.
1 parent b4dc325 commit 82f669b

25 files changed

+79
-80
lines changed

features/FEATURE_BLE/ble/BLE.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class BLE
280280
* function-pointer, init() can also take an <Object, member> pair as its
281281
* callback target.
282282
*
283-
* @important This should be called before using anything else in the BLE
283+
* @attention This should be called before using anything else in the BLE
284284
* API.
285285
*/
286286
ble_error_t init(InitializationCompleteCallback_t completion_cb = NULL) {
@@ -321,7 +321,7 @@ class BLE
321321
* @return BLE_ERROR_NONE if the instance was shut down without error or the
322322
* appropriate error code.
323323
*
324-
* @important init() must be called afterward to reinstate services and
324+
* @attention init() must be called afterward to reinstate services and
325325
* GAP state. This API offers a way to repopulate the GATT database with new
326326
* services and characteristics.
327327
*/

features/FEATURE_BLE/ble/BLEInstanceBase.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class GattClient;
4646
* 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
*
49-
* @important This class is part of the porting API and is not meant to be used
49+
* @attention This class is part of the porting API and is not meant to be used
5050
* by end users of BLE API.
5151
*
5252
* @see BLE
@@ -237,7 +237,7 @@ class BLEInstanceBase
237237
* Process pending events present in the vendor subsystem; then, put the MCU
238238
* to sleep until an external source wakes it up.
239239
*
240-
* @important This function is deprecated in the BLE class. It will be
240+
* @attention This function is deprecated in the BLE class. It will be
241241
* removed from this interface once it is removed from BLE.
242242
*
243243
* @see BLE::waitForEvent() BLE::processEvents()
@@ -254,10 +254,10 @@ class BLEInstanceBase
254254
/**
255255
* Return the instance of the vendor implementation of BLEInstanceBase.
256256
*
257-
* @important Contrary to its name, this function does not return a new instance
257+
* @attention Contrary to its name, this function does not return a new instance
258258
* at each call. It rather acts like an accessor to a singleton.
259259
*
260-
* @important The vendor library must provide an implementation for this function
260+
* @attention The vendor library must provide an implementation for this function
261261
* library. Otherwise, there will be a linker error.
262262
*/
263263
extern BLEInstanceBase *createBLEInstance(void);

features/FEATURE_BLE/ble/DiscoveredService.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class DiscoveredService {
8484
/**
8585
* Construct a DiscoveredService instance.
8686
*
87-
* @important This API is not meant to be used publicly. It is meant to be
87+
* @attention This API is not meant to be used publicly. It is meant to be
8888
* used by internal APIs of Mbed BLE.
8989
*/
9090
DiscoveredService() :
@@ -96,7 +96,7 @@ class DiscoveredService {
9696
/**
9797
* Set information about the discovered service.
9898
*
99-
* @important This API is not meant to be used publicly. It is meant to be
99+
* @attention This API is not meant to be used publicly. It is meant to be
100100
* used by internal APIs of Mbed BLE.
101101
*
102102
* @param[in] uuidIn The UUID of the discovered service.
@@ -118,7 +118,7 @@ class DiscoveredService {
118118
/**
119119
* Set the start and end handle of the discovered service.
120120
*
121-
* @important This API is not meant to be used publicly. It is meant to be
121+
* @attention This API is not meant to be used publicly. It is meant to be
122122
* used by internal APIs of Mbed BLE.
123123
*
124124
* @param[in] startHandleIn The start handle of the discovered service in
@@ -137,7 +137,7 @@ class DiscoveredService {
137137
/**
138138
* Set the long UUID of the discovered service.
139139
*
140-
* @important This API is not meant to be used publicly. It is meant to be
140+
* @attention This API is not meant to be used publicly. It is meant to be
141141
* used by internal APIs of Mbed BLE.
142142
*
143143
* @param[in] longUUID The bytes composing the long UUID of this discovered

features/FEATURE_BLE/ble/FunctionPointerWithContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* This class also offers a mechanism to chain other instances to it. When an
4747
* instance is called, all the instances being part of the chain are called.
4848
*
49-
* @important freestanding or member function adapted must accept a single
49+
* @attention freestanding or member function adapted must accept a single
5050
* argument, and this argument is a pointer to ContextType. Adapted
5151
* primitives do not return anything.
5252
*

features/FEATURE_BLE/ble/Gap.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class Gap {
347347
/**
348348
* Enumeration of disconnection reasons.
349349
*
350-
* @important There might be a mismatch between the disconnection reason
350+
* @attention There might be a mismatch between the disconnection reason
351351
* passed to disconnect() and the disconnection event generated locally
352352
* because the disconnection reason passed to disconnect() is the
353353
* disconnection reason to be transmitted to the peer.
@@ -356,7 +356,7 @@ class Gap {
356356
/**
357357
* The connection timed out.
358358
*
359-
* @important shall not be used as a reason in disconnect().
359+
* @attention shall not be used as a reason in disconnect().
360360
*/
361361
CONNECTION_TIMEOUT = 0x08,
362362

@@ -379,7 +379,7 @@ class Gap {
379379
* Indicate that the local user or the internal
380380
* Bluetooth subsystem terminated the connection.
381381
*
382-
* @important shall not be used as a reason in disconnect().
382+
* @attention shall not be used as a reason in disconnect().
383383
*/
384384
LOCAL_HOST_TERMINATED_CONNECTION = 0x16,
385385

@@ -548,7 +548,7 @@ class Gap {
548548
*
549549
* @note The BLE API does not express the broadcaster and scanner roles.
550550
*
551-
* @important A device can fulfill different roles concurrently.
551+
* @attention A device can fulfill different roles concurrently.
552552
*/
553553
enum Role_t {
554554
/**
@@ -2271,7 +2271,7 @@ class Gap {
22712271
/**
22722272
* Notify all registered connection event handlers of a connection event.
22732273
*
2274-
* @important This function is meant to be called from the BLE stack specific
2274+
* @attention This function is meant to be called from the BLE stack specific
22752275
* implementation when a connection event occurs.
22762276
*
22772277
* @param[in] handle Handle of the new connection.
@@ -2312,7 +2312,7 @@ class Gap {
23122312
/**
23132313
* Notify all registered disconnection event handlers of a disconnection event.
23142314
*
2315-
* @important This function is meant to be called from the BLE stack specific
2315+
* @attention This function is meant to be called from the BLE stack specific
23162316
* implementation when a disconnection event occurs.
23172317
*
23182318
* @param[in] handle Handle of the terminated connection.
@@ -2334,7 +2334,7 @@ class Gap {
23342334
* Forward a received advertising packet to all registered event handlers
23352335
* listening for scanned packet events.
23362336
*
2337-
* @important This function is meant to be called from the BLE stack specific
2337+
* @attention This function is meant to be called from the BLE stack specific
23382338
* implementation when a disconnection event occurs.
23392339
*
23402340
* @param[in] peerAddr Address of the peer that has emitted the packet.
@@ -2367,7 +2367,7 @@ class Gap {
23672367
* Notify the occurrence of a timeout event to all registered timeout events
23682368
* handler.
23692369
*
2370-
* @important This function is meant to be called from the BLE stack specific
2370+
* @attention This function is meant to be called from the BLE stack specific
23712371
* implementation when a disconnection event occurs.
23722372
*
23732373
* @param[in] source Source of the timout event.

features/FEATURE_BLE/ble/GattAttribute.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class GattAttribute {
166166
/**
167167
* Get a pointer to the current length of the attribute value.
168168
*
169-
* @important note Do not use this function.
169+
* @attention note Do not use this function.
170170
*
171171
* @return A pointer to the current length of the attribute value.
172172
*/
@@ -178,7 +178,7 @@ class GattAttribute {
178178
/**
179179
* Set the attribute handle.
180180
*
181-
* @important The GattServer uses this function internally.
181+
* @attention The GattServer uses this function internally.
182182
* Application code must not use it.
183183
*
184184
* @param[in] id The new attribute handle.

features/FEATURE_BLE/ble/GattCallbackParamTypes.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
* whether the GattServer has received a write request or a GattClient has
3232
* received a write response.
3333
*
34-
* @important The GattServer only populates the fields offset, len and data
34+
* @attention The GattServer only populates the fields offset, len and data
3535
* when it has received a write request. Callbacks attached to the GattClient
3636
* do not use those fields.
3737
*
38-
* @important The GattClient only populates the fields status and error_code
38+
* @attention The GattClient only populates the fields status and error_code
3939
* when it has received a write response. Callbacks attached to the GattServer
4040
* do not use those fields.
4141
*/
@@ -99,14 +99,14 @@ struct GattWriteCallbackParams {
9999
/**
100100
* Offset within the attribute value to be written.
101101
*
102-
* @important Reserved for GattServer registered callbacks.
102+
* @attention Reserved for GattServer registered callbacks.
103103
*/
104104
uint16_t offset;
105105

106106
/**
107107
* Status of the GattClient Write operation.
108108
*
109-
* @important Reserved for GattClient registered callbacks.
109+
* @attention Reserved for GattClient registered callbacks.
110110
*/
111111
ble_error_t status;
112112
};
@@ -115,24 +115,24 @@ struct GattWriteCallbackParams {
115115
/**
116116
* Length (in bytes) of the data to write.
117117
*
118-
* @important Reserved for GattServer registered callbacks.
118+
* @attention Reserved for GattServer registered callbacks.
119119
*/
120120
uint16_t len;
121121

122122
/**
123123
* Error code of the GattClient Write operation.
124124
*
125-
* @important Reserved for GattClient registered callbacks.
125+
* @attention Reserved for GattClient registered callbacks.
126126
*/
127127
uint8_t error_code;
128128
};
129129

130130
/**
131131
* Pointer to the data to write.
132132
*
133-
* @important Data may not persist beyond the callback scope.
133+
* @attention Data may not persist beyond the callback scope.
134134
*
135-
* @important Reserved for GattServer registered callbacks.
135+
* @attention Reserved for GattServer registered callbacks.
136136
*/
137137
const uint8_t *data;
138138
};
@@ -144,7 +144,7 @@ struct GattWriteCallbackParams {
144144
* whether the GattServer has received a read request or a GattClient has
145145
* received a read response.
146146
*
147-
* @important The GattClient only populates the fields status and error_code
147+
* @attention The GattClient only populates the fields status and error_code
148148
* when it has received a read response. Callbacks attached to the GattServer
149149
* do not use those fields.
150150
*/
@@ -173,9 +173,9 @@ struct GattReadCallbackParams {
173173
/**
174174
* Error code of the GattClient read operation.
175175
*
176-
* @important Reserved for GattClient registered callbacks.
176+
* @attention Reserved for GattClient registered callbacks.
177177
*
178-
* @important set if status is not equal to BLE_ERROR_NONE; otherwise,
178+
* @attention set if status is not equal to BLE_ERROR_NONE; otherwise,
179179
* this field is interpreted as len.
180180
*/
181181
uint8_t error_code;
@@ -184,14 +184,14 @@ struct GattReadCallbackParams {
184184
/**
185185
* Pointer to the data read.
186186
*
187-
* @important Data may not persist beyond the callback scope.
187+
* @attention Data may not persist beyond the callback scope.
188188
*/
189189
const uint8_t *data;
190190

191191
/**
192192
* Status of the GattClient Read operation.
193193
*
194-
* @important Reserved for GattClient registered callbacks.
194+
* @attention Reserved for GattClient registered callbacks.
195195
*/
196196
ble_error_t status;
197197
};

features/FEATURE_BLE/ble/GattCharacteristic.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ class GattCharacteristic {
13571357
* be allocated if either the notify or indicate flag in the @p props bit
13581358
* field; the underlying BLE stack handles it.
13591359
*
1360-
* @important GattCharacteristic registered in a GattServer must remain
1360+
* @attention GattCharacteristic registered in a GattServer must remain
13611361
* valid for the lifetime of the GattServer.
13621362
*/
13631363
GattCharacteristic(
@@ -1476,7 +1476,7 @@ class GattCharacteristic {
14761476
* This function is a helper that calls the registered write handler to
14771477
* determine the authorization reply for a write request.
14781478
*
1479-
* @important This function is not meant to be called by user code.
1479+
* @attention This function is not meant to be called by user code.
14801480
*
14811481
* @param[in] params Context of the write-auth request; it contains an
14821482
* out-parameter used as a reply.
@@ -1502,7 +1502,7 @@ class GattCharacteristic {
15021502
* This function is a helper that calls the registered read handler to
15031503
* determine the authorization reply for a read request.
15041504
*
1505-
* @important This function is not meant to be called by user code.
1505+
* @attention This function is not meant to be called by user code.
15061506
*
15071507
* @param[in] params Context of the read-auth request; it contains an
15081508
* out-parameter used as a reply and the handler can fill it with outgoing

features/FEATURE_BLE/ble/GattClient.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ class GattClient {
743743
/**
744744
* Forward an attribute read event to all registered handlers.
745745
*
746-
* @important This function is meant to be called from the vendor
746+
* @attention This function is meant to be called from the vendor
747747
* implementation when an attribute read event occurs.
748748
*
749749
* @param[in] params Attribute read event to pass to the registered handlers.
@@ -756,7 +756,7 @@ class GattClient {
756756
/**
757757
* Forward an attribute written event to all registered handlers.
758758
*
759-
* @important This function is meant to be called from the vendor
759+
* @attention This function is meant to be called from the vendor
760760
* implementation when an attribute written event occurs.
761761
*
762762
* @param[in] params Attribute written event to pass to the registered
@@ -771,7 +771,7 @@ class GattClient {
771771
* Forward a handle value notification or indication event to all registered
772772
* handlers.
773773
*
774-
* @important This function is meant to be called from the vendor
774+
* @attention This function is meant to be called from the vendor
775775
* implementation when a notification or indication event is available.
776776
*
777777
* @param[in] params Notification or Indication event to pass to the

0 commit comments

Comments
 (0)