Skip to content

Commit 9f3801b

Browse files
Merge pull request #4992 from akosthekiss/ble-doc-fixes
Fix BLE API docs
2 parents e009d9f + 90b326a commit 9f3801b

File tree

11 files changed

+41
-40
lines changed

11 files changed

+41
-40
lines changed

features/FEATURE_BLE/ble/BLE.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ class BLE
798798
* @param connectionParams
799799
* Connection parameters.
800800
* @param scanParams
801-
* Paramters to use while scanning for the peer.
801+
* Parameters to use while scanning for the peer.
802802
* @return BLE_ERROR_NONE if connection establishment procedure is started
803803
* successfully. The onConnection callback (if set) is invoked upon
804804
* a connection event.

features/FEATURE_BLE/ble/BLEProtocol.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* A common namespace for types and constants used everywhere in BLE API.
2626
*/
2727
namespace BLEProtocol {
28-
/**<
28+
/**
2929
* A simple container for the enumeration of address-types for Protocol addresses.
3030
*
3131
* Adding a struct to encapsulate the contained enumeration prevents
@@ -37,7 +37,7 @@ namespace BLEProtocol {
3737
* would allow the use of AliasedType::PUBLIC in code.
3838
*/
3939
struct AddressType {
40-
/**< Address-types for Protocol addresses. */
40+
/** Address-types for Protocol addresses. */
4141
enum Type {
4242
PUBLIC = 0,
4343
RANDOM_STATIC,

features/FEATURE_BLE/ble/Gap.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Gap {
5656
*
5757
* @deprecated Use BLEProtocol::AddressType_t instead. The following
5858
* constants have been left in their deprecated state to
59-
* transparenly support existing applications which may have
59+
* transparently support existing applications which may have
6060
* used Gap::ADDR_TYPE_*.
6161
*/
6262
enum DeprecatedAddressType_t {
@@ -320,7 +320,7 @@ class Gap {
320320

321321
/**
322322
* Type for the registered callbacks added to the disconnection event
323-
* callchain. Refer to Gap::onDisconnetion().
323+
* callchain. Refer to Gap::onDisconnection().
324324
*/
325325
typedef FunctionPointerWithContext<const DisconnectionCallbackParams_t*> DisconnectionEventCallback_t;
326326
/**
@@ -447,7 +447,7 @@ class Gap {
447447
* @param[in] connectionParams
448448
* Connection parameters.
449449
* @param[in] scanParams
450-
* Paramters to be used while scanning for the peer.
450+
* Parameters to be used while scanning for the peer.
451451
*
452452
* @return BLE_ERROR_NONE if connection establishment procedure is started
453453
* successfully. The connectionCallChain (if set) will be invoked upon
@@ -516,7 +516,7 @@ class Gap {
516516
*
517517
* @deprecated This version of disconnect() doesn't take a connection handle. It
518518
* works reliably only for stacks that are limited to a single
519-
* connection. Use instead Gap::disconnect(Handle_t connectionHandle,
519+
* connection. Use Gap::disconnect(Handle_t connectionHandle,
520520
* DisconnectionReason_t reason) instead.
521521
*/
522522
virtual ble_error_t disconnect(DisconnectionReason_t reason) {

features/FEATURE_BLE/ble/GapAdvertisingParams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class GapAdvertisingParams {
160160
}
161161

162162
/**
163-
* Get The advertising timeout.
163+
* Get the advertising timeout.
164164
*
165165
* @return The advertising timeout (in seconds).
166166
*/

features/FEATURE_BLE/ble/GattCallbackParamTypes.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct GattWriteCallbackParams {
3131
OP_EXEC_WRITE_REQ_NOW = 0x06, /**< Execute write request: immediately execute all prepared writes. */
3232
};
3333

34-
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event */
34+
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event. */
3535
GattAttribute::Handle_t handle; /**< Attribute Handle to which the write operation applies. */
3636
WriteOp_t writeOp; /**< Type of write operation. */
3737
uint16_t offset; /**< Offset for the write operation. */
@@ -46,7 +46,7 @@ struct GattWriteCallbackParams {
4646
};
4747

4848
struct GattReadCallbackParams {
49-
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event */
49+
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event. */
5050
GattAttribute::Handle_t handle; /**< Attribute Handle to which the read operation applies. */
5151
uint16_t offset; /**< Offset for the read operation. */
5252
uint16_t len; /**< Length (in bytes) of the data to read. */
@@ -75,7 +75,7 @@ enum GattAuthCallbackReply_t {
7575
};
7676

7777
struct GattWriteAuthCallbackParams {
78-
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event */
78+
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event. */
7979
GattAttribute::Handle_t handle; /**< Attribute Handle to which the write operation applies. */
8080
uint16_t offset; /**< Offset for the write operation. */
8181
uint16_t len; /**< Length of the incoming data. */
@@ -88,7 +88,7 @@ struct GattWriteAuthCallbackParams {
8888
};
8989

9090
struct GattReadAuthCallbackParams {
91-
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event */
91+
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event. */
9292
GattAttribute::Handle_t handle; /**< Attribute Handle to which the read operation applies. */
9393
uint16_t offset; /**< Offset for the read operation. */
9494
uint16_t len; /**< Optional: new length of the outgoing data. */
@@ -105,7 +105,7 @@ struct GattReadAuthCallbackParams {
105105
* generated at the remote server.
106106
*/
107107
struct GattHVXCallbackParams {
108-
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event */
108+
Gap::Handle_t connHandle; /**< The handle of the connection that triggered the event. */
109109
GattAttribute::Handle_t handle; /**< Attribute Handle to which the HVx operation applies. */
110110
HVXType_t type; /**< Indication or Notification, see HVXType_t. */
111111
uint16_t len; /**< Attribute data length. */

features/FEATURE_BLE/ble/GattCharacteristic.h

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class GattCharacteristic {
395395
/**
396396
* Set up callback that will be triggered before the GATT Client is allowed
397397
* to read this characteristic. The handler will determine the
398-
* authorizaion reply for the read.
398+
* authorization reply for the read.
399399
*
400400
* @param[in] callback
401401
* Event handler being registered.
@@ -457,7 +457,8 @@ class GattCharacteristic {
457457
* is granted.
458458
*
459459
* @note To authorize or deny the read the params->authorizationReply field
460-
* should be set to true (authorize) or false (deny).
460+
* should be set to AUTH_CALLBACK_REPLY_SUCCESS (authorize) or any
461+
* of the AUTH_CALLBACK_REPLY_ATTERR_* values (deny).
461462
*
462463
* @note If the read is approved and params->data is unchanged (NULL),
463464
* the current characteristic value will be used.
@@ -507,7 +508,7 @@ class GattCharacteristic {
507508
}
508509

509510
/**
510-
* Get the characteristic's propertied. Refer to
511+
* Get the characteristic's properties. Refer to
511512
* GattCharacteristic::Properties_t.
512513
*
513514
* @return The characteristic's properties.
@@ -548,7 +549,7 @@ class GattCharacteristic {
548549
/**
549550
* Check whether write authorization is enabled i.e. check whether a
550551
* write authorization callback was previously registered. Refer to
551-
* GattCharacteristic::setReadAuthorizationCallback().
552+
* GattCharacteristic::setWriteAuthorizationCallback().
552553
*
553554
* @return true if write authorization is enabled, false otherwise.
554555
*/
@@ -590,7 +591,7 @@ class GattCharacteristic {
590591
/**
591592
* The characteristic's descriptor attributes.
592593
* This contains only CCCDs that has neither the notify nor the indicate
593-
* flag set, as thoses are handled by the underlying BLE stack.
594+
* flag set, as those are handled by the underlying BLE stack.
594595
*/
595596
GattAttribute **_descriptors;
596597
/**
@@ -635,9 +636,9 @@ class ReadOnlyGattCharacteristic : public GattCharacteristic {
635636
* @param[in] uuid
636637
* The characteristic's UUID.
637638
* @param[in] valuePtr
638-
* Pointer to the characterisitic's initial value.
639+
* Pointer to the characteristic's initial value.
639640
* @param[in] additionalProperties
640-
* Additional characterisitic properties. By default, the
641+
* Additional characteristic properties. By default, the
641642
* properties are set to
642643
* Properties_t::BLE_GATT_CHAR_PROPERTIES_READ.
643644
* @param[in] descriptors
@@ -673,9 +674,9 @@ class WriteOnlyGattCharacteristic : public GattCharacteristic {
673674
* @param[in] uuid
674675
* The characteristic's UUID.
675676
* @param[in] valuePtr
676-
* Pointer to the characterisitic's initial value.
677+
* Pointer to the characteristic's initial value.
677678
* @param[in] additionalProperties
678-
* Additional characterisitic properties. By default, the
679+
* Additional characteristic properties. By default, the
679680
* properties are set to
680681
* Properties_t::BLE_GATT_CHAR_PROPERTIES_WRITE.
681682
* @param[in] descriptors
@@ -711,9 +712,9 @@ class ReadWriteGattCharacteristic : public GattCharacteristic {
711712
* @param[in] uuid
712713
* The characteristic's UUID.
713714
* @param[in] valuePtr
714-
* Pointer to the characterisitic's initial value.
715+
* Pointer to the characteristic's initial value.
715716
* @param[in] additionalProperties
716-
* Additional characterisitic properties. By default, the
717+
* Additional characteristic properties. By default, the
717718
* properties are set to
718719
* Properties_t::BLE_GATT_CHAR_PROPERTIES_WRITE |
719720
* Properties_t::BLE_GATT_CHAR_PROPERTIES_READ.
@@ -754,7 +755,7 @@ class WriteOnlyArrayGattCharacteristic : public GattCharacteristic {
754755
* Pointer to an array of length NUM_ELEMENTS containing the
755756
* characteristic's intitial value.
756757
* @param[in] additionalProperties
757-
* Additional characterisitic properties. By default, the
758+
* Additional characteristic properties. By default, the
758759
* properties are set to
759760
* Properties_t::BLE_GATT_CHAR_PROPERTIES_WRITE.
760761
* @param[in] descriptors
@@ -794,7 +795,7 @@ class ReadOnlyArrayGattCharacteristic : public GattCharacteristic {
794795
* Pointer to an array of length NUM_ELEMENTS containing the
795796
* characteristic's intitial value.
796797
* @param[in] additionalProperties
797-
* Additional characterisitic properties. By default, the
798+
* Additional characteristic properties. By default, the
798799
* properties are set to
799800
* Properties_t::BLE_GATT_CHAR_PROPERTIES_READ.
800801
* @param[in] descriptors
@@ -834,7 +835,7 @@ class ReadWriteArrayGattCharacteristic : public GattCharacteristic {
834835
* Pointer to an array of length NUM_ELEMENTS containing the
835836
* characteristic's intitial value.
836837
* @param[in] additionalProperties
837-
* Additional characterisitic properties. By default, the
838+
* Additional characteristic properties. By default, the
838839
* properties are set to
839840
* Properties_t::BLE_GATT_CHAR_PROPERTIES_WRITE |
840841
* Properties_t::BLE_GATT_CHAR_PROPERTIES_READ.

features/FEATURE_BLE/ble/GattService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class GattService {
109109
* @param[in] index
110110
* The index of the characteristic.
111111
*
112-
* @return A pointer to the characterisitic at index @p index.
112+
* @return A pointer to the characteristic at index @p index.
113113
*/
114114
GattCharacteristic *getCharacteristic(uint8_t index) {
115115
if (index >= _characteristicCount) {

features/FEATURE_BLE/ble/services/DFUService.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class DFUService {
9696
* chance to clean up.
9797
*
9898
* @param[in] params
99-
* Information about the characterisitc being updated.
99+
* Information about the characteristic being updated.
100100
*/
101101
virtual void onDataWritten(const GattWriteCallbackParams *params) {
102102
if (params->handle == controlPoint.getValueHandle()) {
@@ -124,16 +124,16 @@ class DFUService {
124124
protected:
125125
BLE &ble;
126126

127-
/**< Writing to the control characteristic triggers the handover to DFU
128-
* bootloader. At present, writing anything will do the trick - this needs
129-
* to be improved. */
127+
/** Writing to the control characteristic triggers the handover to DFU
128+
* bootloader. At present, writing anything will do the trick - this needs
129+
* to be improved. */
130130
WriteOnlyArrayGattCharacteristic<uint8_t, SIZEOF_CONTROL_BYTES> controlPoint;
131131

132-
/**< The packet characteristic in this service doesn't do anything meaningful;
133-
* it is only a placeholder to mimic the corresponding characteristic in the
134-
* actual DFU service implemented by the bootloader. Without this, some
135-
* FOTA clients might get confused, because service definitions change after
136-
* handing control over to the bootloader. */
132+
/** The packet characteristic in this service doesn't do anything meaningful;
133+
* it is only a placeholder to mimic the corresponding characteristic in the
134+
* actual DFU service implemented by the bootloader. Without this, some
135+
* FOTA clients might get confused, because service definitions change after
136+
* handing control over to the bootloader. */
137137
GattCharacteristic packet;
138138

139139
uint8_t controlBytes[SIZEOF_CONTROL_BYTES];

features/FEATURE_BLE/ble/services/HeartRateService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class HeartRateService {
112112
* controlPoint characteristic.
113113
*
114114
* @param[in] params
115-
* Information about the characterisitc being updated.
115+
* Information about the characteristic being updated.
116116
*/
117117
virtual void onDataWritten(const GattWriteCallbackParams *params) {
118118
if (params->handle == controlPoint.getValueAttribute().getHandle()) {

features/FEATURE_BLE/ble/services/LinkLossService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class LinkLossService {
7878
* This callback allows receiving updates to the AlertLevel characteristic.
7979
*
8080
* @param[in] params
81-
* Information about the characterisitc being updated.
81+
* Information about the characteristic being updated.
8282
*/
8383
virtual void onDataWritten(const GattWriteCallbackParams *params) {
8484
if (params->handle == alertLevelChar.getValueHandle()) {

0 commit comments

Comments
 (0)