Skip to content

Commit 701c18b

Browse files
missing documentation, removed privacy call from api
1 parent c52d324 commit 701c18b

File tree

4 files changed

+18
-35
lines changed

4 files changed

+18
-35
lines changed

features/FEATURE_BLE/ble/BLETypes.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ struct attribute_handle_range_t {
9898
/**
9999
* Construct an attribute_handle_range_t from its first and last attribute handle.
100100
*
101-
* @param begin Handle at the beginning of the range.
102-
* @param end Handle at the end of the range.
101+
* @param[in] begin Handle at the beginning of the range.
102+
* @param[in] end Handle at the end of the range.
103103
*
104104
* @return An instance of attribute_handle_range_t where
105105
* attribute_handle_range_t::begin is equal to begin and
@@ -208,7 +208,7 @@ class PasskeyAscii {
208208
/**
209209
* Initialize a data from a string.
210210
*
211-
* @param input_value value of the data.
211+
* @param[in] passkey value of the data.
212212
*/
213213
PasskeyAscii(const uint8_t* passkey) {
214214
if (passkey) {
@@ -221,7 +221,7 @@ class PasskeyAscii {
221221
/**
222222
* Initialize a data from a number.
223223
*
224-
* @param input_value value of the data.
224+
* @param[in] passkey value of the data.
225225
*/
226226
PasskeyAscii(passkey_num_t passkey) {
227227
for (int i = 5, m = 100000; i >= 0; --i, m /= 10) {
@@ -240,7 +240,7 @@ class PasskeyAscii {
240240

241241
/**
242242
* Convert ASCII string of digits into a number.
243-
* @param ASCII string of 6 digits stored as ASCII characters
243+
* @param[in] ascii ASCII string of 6 digits stored as ASCII characters
244244
* @return Passkey as a number.
245245
*/
246246
static uint32_t to_num(const uint8_t *ascii) {
@@ -273,7 +273,7 @@ struct byte_array_t {
273273
/**
274274
* Initialize a data from an array of bytes.
275275
*
276-
* @param input_value value of the data.
276+
* @param[in] input_value value of the data.
277277
*/
278278
byte_array_t(const uint8_t *input_value) {
279279
memcpy(_value, input_value, sizeof(_value));
@@ -282,8 +282,8 @@ struct byte_array_t {
282282
/**
283283
* Initialize a data from an buffer of bytes.
284284
*
285-
* @param input_value pointer to buffer.
286-
* @param size buffer size
285+
* @param[in] input_value pointer to buffer.
286+
* @param[in] size buffer size
287287
*/
288288
byte_array_t(const uint8_t* input_value, size_t size) {
289289
memcpy(_value, input_value, size);
@@ -372,7 +372,7 @@ struct address_t : public byte_array_t<6> {
372372
/**
373373
* Initialize a data from an array of bytes.
374374
*
375-
* @param input_value value of the data.
375+
* @param[in] input_value value of the data.
376376
*/
377377
address_t(const uint8_t *input_value) {
378378
memcpy(_value, input_value, sizeof(_value));

features/FEATURE_BLE/ble/Gap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@ class Gap {
23482348
* @param[in] type Advertising type of the packet.
23492349
* @param[in] advertisingDataLen Length of the advertisement data received.
23502350
* @param[in] advertisingData Pointer to the advertisement packet's data.
2351-
* @param[in] addressType address type of the peer
2351+
* @param[in] addressType address type of the peer.
23522352
*/
23532353
void processAdvertisementReport(
23542354
const BLEProtocol::AddressBytes_t peerAddr,

features/FEATURE_BLE/ble/SecurityManager.h

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ class SecurityManager {
141141
/**
142142
* Deliver the requested whitelist to the application.
143143
*
144-
* @param[in] whitelist whitelist created based on the bonding table,
145-
* caller transfers the memory ownership
144+
* @param[in] whitelist pointer to the whitelist filled with entries based on bonding information
146145
*/
147146
virtual void whitelistFromBondTable(Gap::Whitelist_t* whitelist) {
148147
if (whitelist) {
@@ -372,8 +371,8 @@ class SecurityManager {
372371
*
373372
* @param[in] whitelist Preallocated whitelist which will be filled up to its capacity.
374373
* If whitelist already contains entries this will be appended to.
375-
* Ownership of memory is trasnferred from the caller. It will be
376-
* returned in the generated event.
374+
* Do not access the whitelist until callback has been called,
375+
* returning the filled whitelist.
377376
*
378377
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
379378
*/
@@ -571,7 +570,7 @@ class SecurityManager {
571570
* by a call to linkEncryptionResult in the event handler when the action is completed.
572571
*
573572
* @param[in] connectionHandle Handle to identify the connection.
574-
* @param[in] encryption
573+
* @param[in] encryption encryption state requested
575574
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
576575
*/
577576
virtual ble_error_t setLinkEncryption(ble::connection_handle_t connectionHandle, ble::link_encryption_t encryption) {
@@ -584,7 +583,7 @@ class SecurityManager {
584583
* Return the size of the encryption key used on this link.
585584
*
586585
* @param[in] connectionHandle Handle to identify the connection.
587-
* @param[out] size Size of the encryption key in bytes
586+
* @param[out] byteSize Size of the encryption key in bytes.
588587
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
589588
*/
590589
virtual ble_error_t getEncryptionKeySize(ble::connection_handle_t connectionHandle, uint8_t *byteSize) {
@@ -607,21 +606,6 @@ class SecurityManager {
607606
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
608607
}
609608

610-
////////////////////////////////////////////////////////////////////////////
611-
// Privacy
612-
//
613-
614-
/**
615-
* Set the time after which the private adress will be regenerated.
616-
*
617-
* @param[in] timeout_in_seconds How often (in seconds) the private address should be regenerated.
618-
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
619-
*/
620-
virtual ble_error_t setPrivateAddressTimeout(uint16_t timeout_in_seconds) {
621-
(void) timeout_in_seconds;
622-
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
623-
}
624-
625609
////////////////////////////////////////////////////////////////////////////
626610
// Authentication
627611
//
@@ -833,8 +817,8 @@ class SecurityManager {
833817
*
834818
* Get the security status of a connection.
835819
*
836-
* @param[in] connectionHandle Handle to identify the connection.
837-
* @param[out] securityStatusP Security status.
820+
* @param[in] connectionHandle Handle to identify the connection.
821+
* @param[out] securityStatus Security status.
838822
*
839823
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
840824
*/

features/FEATURE_BLE/ble/pal/SecurityDb.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ class SecurityDb {
367367

368368
/**
369369
* Asynchronously return a whitelist through a callback, generated from the
370-
* bond table. Function takes ownership of the memory. The whitelist and the
371-
* ownership will be returned in the callback.
370+
* bond table.
372371
*
373372
* @param[in] cb callback that will receive the whitelist
374373
* @param[in] whitelist preallocated whitelist that will be filled in

0 commit comments

Comments
 (0)