Skip to content

Commit 4d81ead

Browse files
authored
Merge pull request #5701 from pan-/ble-doxy-fixes
Ble doxy fixes
2 parents cc6a838 + 51083a6 commit 4d81ead

35 files changed

+118
-114
lines changed

doxyfile_options

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,10 +841,15 @@ EXCLUDE_PATTERNS = */tools/* \
841841
*/BUILD/* \
842842
*/rtos/TARGET_CORTEX/rtx* \
843843
*/cmsis/* \
844-
*/FEATURE_* \
845844
*/features/mbedtls/* \
846845
*/features/storage/* \
847846
*/features/unsupported/* \
847+
*/features/FEATURE_COMMON_PAL/* \
848+
*/features/FEATURE_LWIP/* \
849+
*/features/FEATURE_UVISOR/* \
850+
*/features/nanostack/* \
851+
*/ble/generic/* \
852+
*/ble/pal/*
848853

849854
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
850855
# (namespaces, classes, functions, etc.) that should be excluded from the
@@ -2081,7 +2086,8 @@ PREDEFINED = DOXYGEN_ONLY \
20812086
DEVICE_SPISLAVE \
20822087
DEVICE_STORAGE \
20832088
"MBED_DEPRECATED_SINCE(d, m)=" \
2084-
"MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)="
2089+
"MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)=" \
2090+
"MBED_DEPRECATED(s)="
20852091

20862092
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
20872093
# tag can be used to specify a list of macro names that should be expanded. The

doxygen_options.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"SEARCH_INCLUDES": "YES",
77
"INCLUDE_PATH": "",
88
"INCLUDE_FILE_PATTERNS": "",
9-
"PREDEFINED": "DOXYGEN_ONLY DEVICE_ANALOGIN DEVICE_ANALOGOUT DEVICE_CAN DEVICE_ETHERNET DEVICE_EMAC DEVICE_FLASH DEVICE_I2C DEVICE_I2CSLAVE DEVICE_I2C_ASYNCH DEVICE_INTERRUPTIN DEVICE_LOWPOWERTIMER DEVICE_PORTIN DEVICE_PORTINOUT DEVICE_PORTOUT DEVICE_PWMOUT DEVICE_RTC DEVICE_TRNG DEVICE_SERIAL DEVICE_SERIAL_ASYNCH DEVICE_SERIAL_FC DEVICE_SLEEP DEVICE_SPI DEVICE_SPI_ASYNCH DEVICE_SPISLAVE DEVICE_STORAGE \"MBED_DEPRECATED_SINCE(f, g)=\" \"MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)=\"",
9+
"PREDEFINED": "DOXYGEN_ONLY DEVICE_ANALOGIN DEVICE_ANALOGOUT DEVICE_CAN DEVICE_ETHERNET DEVICE_EMAC DEVICE_FLASH DEVICE_I2C DEVICE_I2CSLAVE DEVICE_I2C_ASYNCH DEVICE_INTERRUPTIN DEVICE_LOWPOWERTIMER DEVICE_PORTIN DEVICE_PORTINOUT DEVICE_PORTOUT DEVICE_PWMOUT DEVICE_RTC DEVICE_TRNG DEVICE_SERIAL DEVICE_SERIAL_ASYNCH DEVICE_SERIAL_FC DEVICE_SLEEP DEVICE_SPI DEVICE_SPI_ASYNCH DEVICE_SPISLAVE DEVICE_STORAGE \"MBED_DEPRECATED_SINCE(f, g)=\" \"MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)=\" \"MBED_DEPRECATED(s)=\"",
1010
"EXPAND_AS_DEFINED": "",
1111
"SKIP_FUNCTION_MACROS": "NO",
12-
"EXCLUDE_PATTERNS": "*/tools/* */targets/* */FEATURE_*/* */features/mbedtls/* */features/storage/* */features/unsupported/* */BUILD/* */rtos/TARGET_CORTEX/rtx*/* */cmsis/* */features/FEATURES_*"
12+
"EXCLUDE_PATTERNS": "*/tools/* */targets/* */features/mbedtls/* */features/storage/* */features/unsupported/* */BUILD/* */rtos/TARGET_CORTEX/rtx*/* */cmsis/* */features/FEATURE_COMMON_PAL/* */features/FEATURE_LWIP/* */features/FEATURE_UVISOR/* */features/nanostack/* */ble/generic/* */ble/pal/*"
1313
}

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: 3 additions & 3 deletions
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
*
@@ -77,7 +77,7 @@ class FunctionPointerWithContext : public SafeBool<FunctionPointerWithContext<Co
7777
*
7878
* @param[in] object Pointer to the instance which is used to invoke @p
7979
* member.
80-
* @param[in] Pointer to the member function to adapt.
80+
* @param[in] member Pointer to the member function to adapt.
8181
*/
8282
template<typename T>
8383
FunctionPointerWithContext(T *object, void (T::*member)(ContextType context)) :
@@ -136,7 +136,7 @@ class FunctionPointerWithContext : public SafeBool<FunctionPointerWithContext<Co
136136
* operator.
137137
*
138138
* @param[in] object Pointer to the instance is used to invoke @p member.
139-
* @param[in] function Pointer to the member function to adapt.
139+
* @param[in] member Pointer to the member function to adapt.
140140
*/
141141
template<typename T>
142142
void attach(T *object, void (T::*member)(ContextType context))

features/FEATURE_BLE/ble/Gap.h

Lines changed: 14 additions & 16 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
/**
@@ -1147,7 +1147,7 @@ class Gap {
11471147
* invoked with the @p deviceName parameter set to NULL.
11481148
*
11491149
* @param[out] deviceName Pointer to an empty buffer where the UTF-8
1150-
* <b>non NULL-terminated<b> string is placed.
1150+
* <b>non NULL-terminated</b> string is placed.
11511151
*
11521152
* @param[in,out] lengthP Length of the @p deviceName buffer. If the device
11531153
* name is successfully copied, then the length of the device name
@@ -1192,7 +1192,7 @@ class Gap {
11921192
/**
11931193
* Get the value of the appearance characteristic in the GAP service.
11941194
*
1195-
* @param[out] appearance The current device-appearance value.
1195+
* @param[out] appearanceP The current device-appearance value.
11961196
*
11971197
* @return BLE_ERROR_NONE if the device-appearance was fetched correctly
11981198
* from the underlying BLE stack.
@@ -1265,8 +1265,6 @@ class Gap {
12651265
*
12661266
* @return BLE_ERROR_NONE if the implementation's whitelist was successfully
12671267
* copied into the supplied reference.
1268-
*
1269-
* @experimental
12701268
*/
12711269
virtual ble_error_t getWhitelist(Whitelist_t &whitelist) const
12721270
{
@@ -1284,7 +1282,7 @@ class Gap {
12841282
* populated with the addresses in the given whitelist.
12851283
*
12861284
* @note The whitelist must not contain addresses of type @ref
1287-
* BLEProtocol::AddressType_t::RANDOM_PRIVATE_NON_RESOLVABLE. This
1285+
* BLEProtocol::AddressType::RANDOM_PRIVATE_NON_RESOLVABLE. This
12881286
* results in a @ref BLE_ERROR_INVALID_PARAM because the remote peer might
12891287
* change its private address at any time, and it is not possible to resolve
12901288
* it.
@@ -1971,14 +1969,14 @@ class Gap {
19711969
/**
19721970
* Start the advertising procedure.
19731971
*
1974-
* @param[in] Advertising parameters to use.
1972+
* @param[in] params Advertising parameters to use.
19751973
*
19761974
* @return BLE_ERROR_NONE if the advertising procedure successfully
19771975
* started.
19781976
*
19791977
* @note Must be implemented in vendor port.
19801978
*/
1981-
virtual ble_error_t startAdvertising(const GapAdvertisingParams &) = 0;
1979+
virtual ble_error_t startAdvertising(const GapAdvertisingParams &params) = 0;
19821980

19831981
public:
19841982
/**
@@ -2271,7 +2269,7 @@ class Gap {
22712269
/**
22722270
* Notify all registered connection event handlers of a connection event.
22732271
*
2274-
* @important This function is meant to be called from the BLE stack specific
2272+
* @attention This function is meant to be called from the BLE stack specific
22752273
* implementation when a connection event occurs.
22762274
*
22772275
* @param[in] handle Handle of the new connection.
@@ -2312,7 +2310,7 @@ class Gap {
23122310
/**
23132311
* Notify all registered disconnection event handlers of a disconnection event.
23142312
*
2315-
* @important This function is meant to be called from the BLE stack specific
2313+
* @attention This function is meant to be called from the BLE stack specific
23162314
* implementation when a disconnection event occurs.
23172315
*
23182316
* @param[in] handle Handle of the terminated connection.
@@ -2334,12 +2332,12 @@ class Gap {
23342332
* Forward a received advertising packet to all registered event handlers
23352333
* listening for scanned packet events.
23362334
*
2337-
* @important This function is meant to be called from the BLE stack specific
2335+
* @attention This function is meant to be called from the BLE stack specific
23382336
* implementation when a disconnection event occurs.
23392337
*
23402338
* @param[in] peerAddr Address of the peer that has emitted the packet.
23412339
* @param[in] rssi Value of the RSSI measured for the received packet.
2342-
* @param[in] isScanReponse If true, then the packet is a response to a scan
2340+
* @param[in] isScanResponse If true, then the packet is a response to a scan
23432341
* request.
23442342
* @param[in] type Advertising type of the packet.
23452343
* @param[in] advertisingDataLen Length of the advertisement data received.
@@ -2367,7 +2365,7 @@ class Gap {
23672365
* Notify the occurrence of a timeout event to all registered timeout events
23682366
* handler.
23692367
*
2370-
* @important This function is meant to be called from the BLE stack specific
2368+
* @attention This function is meant to be called from the BLE stack specific
23712369
* implementation when a disconnection event occurs.
23722370
*
23732371
* @param[in] source Source of the timout event.

features/FEATURE_BLE/ble/GapEvents.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "blecommon.h"
2121

22-
/// @cond 0
22+
/// @cond INVALID_SECTIONS
2323

2424
/*!
2525
\brief

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.

0 commit comments

Comments
 (0)