Skip to content

Commit b554fce

Browse files
committed
BLE: Fix doxygen warnings.
1 parent c621a92 commit b554fce

11 files changed

+28
-29
lines changed

features/FEATURE_BLE/ble/FunctionPointerWithContext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
/**
@@ -2339,7 +2337,7 @@ class Gap {
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.

features/FEATURE_BLE/ble/SecurityManager.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ class SecurityManager {
175175
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure.
176176
* @retval BLE_ERROR_INVALID_STATE If the API is called without module initialization or
177177
* application registration.
178-
*
179-
* @experimental
180178
*/
181179
virtual ble_error_t getAddressesFromBondTable(Gap::Whitelist_t &addresses) const {
182180
/* Avoid compiler warnings about unused variables */

features/FEATURE_BLE/ble/services/EddystoneConfigService.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,16 @@ class EddystoneConfigService
112112
};
113113

114114
/**
115-
* @param[ref] ble
115+
* @param[in] bleIn
116116
* BLEDevice object for the underlying controller.
117-
* @param[in/out] paramsIn
117+
* @param[in,out] paramsIn
118118
* Reference to application-visible beacon state, loaded
119119
* from persistent storage at startup.
120120
* @param[in] defaultAdvPowerLevelsIn
121121
* Default power-levels array; applies only if resetToDefaultsFlag is true.
122+
*
123+
* @param[in] radioPowerLevelsIn
124+
* Transmission power-levels to use in TX.
122125
*/
123126
EddystoneConfigService(BLEDevice &bleIn,
124127
Params_t &paramsIn,
@@ -176,7 +179,7 @@ class EddystoneConfigService
176179
* @brief Start EddystoneConfig advertising. This function should be called
177180
* after the EddystoneConfig constructor and after all the frames have been added.
178181
*
179-
* @paramsP[in] resetToDefaultsFlag
182+
* @param[in] resetToDefaultsFlag
180183
* Applies to the state of the 'paramsIn' parameter.
181184
* If true, it indicates that paramsIn is potentially
182185
* un-initialized, and default values should be used

features/FEATURE_BLE/ble/services/EddystoneService.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class EddystoneService
9898
* @param[in] power TX Power in dB measured at 0 meters from the device. Range of -100 to +20 dB.
9999
* @param[in] namespaceID 10B namespace ID
100100
* @param[in] instanceID 6B instance ID
101+
* @param[in] uidAdvPeriodIn Advertising period of UID frames.
101102
* @param[in] RFU 2B of RFU, initialized to 0x0000 and not broadcast, included for future reference.
102103
*/
103104
void setUIDFrameData(int8_t power,
@@ -168,7 +169,7 @@ class EddystoneService
168169
/**
169170
* Set Eddystone URL Frame information.
170171
* @param[in] power TX Power in dB measured at 0 meters from the device.
171-
* @param[in] url URL to encode
172+
* @param[in] urlIn URL to encode
172173
* @param[in] urlAdvPeriodIn How long to advertise the URL frame (measured in # of adv periods)
173174
* @return false on success, true on failure.
174175
*/

features/FEATURE_BLE/ble/services/EnvironmentalService.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ class EnvironmentalService {
3535

3636
/**
3737
* @brief EnvironmentalService constructor.
38-
* @param ble Reference to BLE device.
39-
* @param temperature_en Enable this characteristic.
40-
* @param humidity_en Enable this characteristic.
41-
* @param pressure_en Enable this characteristic.
38+
* @param _ble Reference to BLE device.
4239
*/
4340
EnvironmentalService(BLE& _ble) :
4441
ble(_ble),

features/FEATURE_BLE/ble/services/HealthThermometerService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class HealthThermometerService {
4646
public:
4747
/**
4848
* @brief Add the Health Thermometer Service to an existing BLE object, initialize with temperature and location.
49-
* @param[ref] _ble Reference to the BLE device.
49+
* @param[in] _ble Reference to the BLE device.
5050
* @param[in] initialTemp Initial value in celsius.
5151
* @param[in] _location
5252
*/

features/FEATURE_BLE/ble/services/HeartRateService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* BLE Heart Rate Service.
2424
*
25-
* @purpose
25+
* @par purpose
2626
*
2727
* Fitness applications use the heart rate service to expose the heart
2828
* beat per minute measured by a heart rate sensor.

features/FEATURE_BLE/ble/services/LinkLossService.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ class LinkLossService {
3636
typedef void (* callback_t)(AlertLevel_t level);
3737

3838
/**
39-
* @param[ref] ble
39+
* @param bleIn
4040
* BLE object for the underlying controller.
41+
* @param callbackIn Callback invoked upon disconnection.
42+
* @param levelIn Alert level.
4143
*/
4244
LinkLossService(BLE &bleIn, callback_t callbackIn, AlertLevel_t levelIn = NO_ALERT) :
4345
ble(bleIn),

features/FEATURE_BLE/ble/services/UARTService.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class UARTService {
5151
public:
5252

5353
/**
54-
* @param[ref] ble
54+
* @param _ble
5555
* BLE object for the underlying controller.
5656
*/
5757
UARTService(BLE &_ble) :
@@ -98,7 +98,7 @@ class UARTService {
9898
* a long read request; this is because notifications include only the first
9999
* 20 bytes of the updated data.
100100
*
101-
* @param buffer The received update.
101+
* @param _buffer The received update.
102102
* @param length Number of characters to be appended.
103103
* @return Number of characters appended to the rxCharacteristic.
104104
*/

features/FEATURE_BLE/ble/services/URIBeaconConfigService.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ class URIBeaconConfigService {
7575
};
7676

7777
/**
78-
* @param[ref] ble
78+
* @param[in] bleIn
7979
* BLE object for the underlying controller.
80-
* @param[in/out] paramsIn
80+
* @param[in,out] paramsIn
8181
* Reference to application-visible beacon state, loaded
8282
* from persistent storage at startup.
83-
* @paramsP[in] resetToDefaultsFlag
83+
* @param[in] resetToDefaultsFlag
8484
* Applies to the state of the 'paramsIn' parameter.
8585
* If true, it indicates that paramsIn is potentially
8686
* un-initialized, and default values should be used
8787
* instead. Otherwise, paramsIn overrides the defaults.
88-
* @param[in] defaultUriDataIn
88+
* @param[in] defaultURIDataIn
8989
* Default un-encoded URI. Applies only if the resetToDefaultsFlag is true.
9090
* @param[in] defaultAdvPowerLevelsIn
9191
* Default power-levels array. Applies only if the resetToDefaultsFlag is true.

0 commit comments

Comments
 (0)