@@ -33,7 +33,7 @@ namespace ble {
33
33
/* BLE units, using microseconds as the common denominator */
34
34
35
35
/* *
36
- * Time interval between two advertisement .
36
+ * Time interval between two advertisements .
37
37
*
38
38
* The duration is in unit of 625µs and ranges from 0x20 to 0xFFFFFF .
39
39
*
@@ -68,16 +68,16 @@ typedef Duration<uint16_t, 10000, Range<0x00, 0xFFFF>, /* forever */ Value<uint1
68
68
typedef Duration<uint16_t , 1280000 , Range<0x00 , 0xFFFF > > scan_period_t ;
69
69
70
70
/* *
71
- * Time interval between two scan .
71
+ * Time interval between two scans .
72
72
*
73
- * The duration is in unit of 625µs and ranges from 0x04 to 0xFFFF .
73
+ * The duration is in unit of 625µs and ranges from 0x04 to 0xFFFF.
74
74
*/
75
75
typedef Duration<uint16_t , 625 , Range<0x04 , 0xFFFF > > scan_interval_t ;
76
76
77
77
/* *
78
78
* Duration of a scan.
79
79
*
80
- * The duration is in unit of 625µs and ranges from 0x04 to 0xFFFF .
80
+ * The duration is in unit of 625µs and ranges from 0x04 to 0xFFFF.
81
81
*/
82
82
typedef Duration<uint16_t , 625 , Range<0x04 , 0xFFFF > > scan_window_t ;
83
83
@@ -105,15 +105,15 @@ typedef Duration<uint16_t, 10000, Range<0x0A, 0x0C80> > supervision_timeout_t;
105
105
typedef Duration<uint16_t , 625 , Range<0 , 0xFFFF > > conn_event_length_t ;
106
106
107
107
/* *
108
- * Time after which a periodic sync link is considered loss if the receiver hasn't
109
- * receive anything from the advertiser.
108
+ * Time after which a periodic sync link is considered lost if the receiver hasn't
109
+ * received anything from the advertiser.
110
110
*
111
111
* The duration is in unit of 10 milliseconds and ranges from 0x0A to 0x4000.
112
112
*/
113
113
typedef Duration<uint16_t , 10000 , Range<0x0A , 0x4000 > > sync_timeout_t ;
114
114
115
115
/* *
116
- * Interval between two periodic advertsising events.
116
+ * Interval between two periodic advertising events.
117
117
*
118
118
* The duration is in unit of 1.250ms and ranges from 0x06 to 0xFFFF.
119
119
*/
@@ -143,7 +143,7 @@ typedef uint16_t periodic_sync_handle_t;
143
143
/* *
144
144
* Encapsulates the peripheral advertising modes.
145
145
*
146
- * It determine how the device appears to other scanner and peripheral
146
+ * It determines how the device appears to other scanner and peripheral
147
147
* devices in the scanning range.
148
148
*/
149
149
struct advertising_type_t : SafeEnum<advertising_type_t , uint8_t > {
@@ -211,7 +211,7 @@ struct advertising_data_status_t : SafeEnum<advertising_data_status_t, uint8_t>
211
211
enum type {
212
212
COMPLETE = 0x00 , // / Advertising payload complete.
213
213
INCOMPLETE_MORE_DATA = 0x01 , // / Partial advertising payload, more to come.
214
- INCOMPLETE_DATA_TRUNCATED = 0x02 // / Advertising payload incomplete and no more is coming.
214
+ INCOMPLETE_DATA_TRUNCATED = 0x02 // / Advertising payload incomplete, and no more is coming.
215
215
};
216
216
217
217
/* *
@@ -370,8 +370,8 @@ typedef int8_t rssi_t;
370
370
/* *
371
371
* Describe the advertising power.
372
372
*
373
- * Value comprised between -127 and +126 are considered power values in dBm while
374
- * the special value 127 can be used as a wildcard to indicates that the host
373
+ * Values between -127 and +126 are considered power values in dBm while
374
+ * the special value 127 can be used as a wildcard to indicate that the host
375
375
* has no preference or if the power information is not available.
376
376
*/
377
377
typedef int8_t advertising_power_t ;
@@ -392,18 +392,18 @@ struct advertising_filter_policy_t : SafeEnum<advertising_filter_policy_t, uint8
392
392
393
393
/* *
394
394
* Process connection requests from all devices but filter out scan requests
395
- * of devices which are not in the whitelist.
395
+ * of devices that are not in the whitelist.
396
396
*/
397
397
FILTER_SCAN_REQUESTS = 0x01 ,
398
398
399
399
/* *
400
400
* Process scan requests from all devices but filter out connection requests
401
- * of devices which are not in the whitelist.
401
+ * of devices that are not in the whitelist.
402
402
*/
403
403
FILTER_CONNECTION_REQUEST = 0x02 ,
404
404
405
405
/* *
406
- * Filter out scan or connection requests of devices which are not in the
406
+ * Filter out scan or connection requests of devices that are not in the
407
407
* whitelist.
408
408
*/
409
409
FILTER_SCAN_AND_CONNECTION_REQUESTS = 0x03
@@ -427,14 +427,14 @@ struct scanning_filter_policy_t : SafeEnum<scanning_filter_policy_t, uint8_t> {
427
427
// / enumeration of scanning_filter_policy_t values
428
428
enum type {
429
429
/* *
430
- * Accept all advertising packets except directed advertising packet not
430
+ * Accept all advertising packets except directed advertising packets not
431
431
* addressed to this device.
432
432
*/
433
433
NO_FILTER = 0x00 ,
434
434
435
435
/* *
436
436
* Accept only advertising packets from devices in the whitelist except
437
- * directed advertising packet not addressed to this device.
437
+ * directed advertising packets not addressed to this device.
438
438
*/
439
439
FILTER_ADVERTISING = 0x01 ,
440
440
@@ -449,9 +449,9 @@ struct scanning_filter_policy_t : SafeEnum<scanning_filter_policy_t, uint8_t> {
449
449
450
450
/* *
451
451
* Accept all advertising packets except:
452
- * - advertising packets where the advertiser's
453
- * identity address is not in the White List,
454
- * - directed advertising packets where the initiator's identity address
452
+ * - Advertising packets where the advertiser's
453
+ * identity address is not in the whitelist.
454
+ * - Directed advertising packets where the initiator's identity address
455
455
* does not address this device.
456
456
*
457
457
* @note Directed advertising packets where the initiator's address is a
@@ -471,7 +471,7 @@ struct scanning_filter_policy_t : SafeEnum<scanning_filter_policy_t, uint8_t> {
471
471
};
472
472
473
473
/* *
474
- * Filter policy which can be used during connection initiation.
474
+ * Filter policy that you can use during connection initiation.
475
475
*/
476
476
struct initiator_filter_policy_t : SafeEnum<initiator_filter_policy_t , uint8_t > {
477
477
// / enumeration of initiator_filter_policy_t values.
@@ -482,7 +482,7 @@ struct initiator_filter_policy_t : SafeEnum<initiator_filter_policy_t, uint8_t>
482
482
NO_FILTER,
483
483
484
484
/* *
485
- * Whitelist is used to determine which advertiser to connect to.
485
+ * The whitelist is used to determine which advertiser to connect to.
486
486
*/
487
487
USE_WHITE_LIST
488
488
};
@@ -515,7 +515,7 @@ struct duplicates_filter_t : SafeEnum<duplicates_filter_t, uint8_t> {
515
515
ENABLE,
516
516
517
517
/* *
518
- * Enable duplicate filtering, reset the cache periodically.
518
+ * Enable duplicate filtering, and reset the cache periodically.
519
519
*/
520
520
PERIODIC_RESET
521
521
};
@@ -573,7 +573,7 @@ struct own_address_type_t : SafeEnum<own_address_type_t, uint8_t> {
573
573
/* *
574
574
* Type of an address to connect to.
575
575
*
576
- * It is used to connect to a device directly of with directed advertising.
576
+ * It is used to connect to a device directly with directed advertising.
577
577
*/
578
578
struct target_peer_address_type_t : SafeEnum<target_peer_address_type_t , uint8_t > {
579
579
// / enumeration of target_peer_address_type_t values.
@@ -710,7 +710,7 @@ struct connection_role_t : SafeEnum<connection_role_t, uint8_t> {
710
710
/* *
711
711
* Peripheral Role.
712
712
*
713
- * The device can advertise and it can be connected by a central. It
713
+ * The device can advertise, and you can connect it by a central. It
714
714
* acts as a slave when connected.
715
715
*
716
716
* @note A peripheral is a broadcaster.
@@ -767,7 +767,7 @@ struct local_disconnection_reason_t : SafeEnum<local_disconnection_reason_t, uin
767
767
POWER_OFF = 0x15 ,
768
768
769
769
/* *
770
- * Remote feature not supported
770
+ * Remote feature not supported.
771
771
*/
772
772
UNSUPPORTED_REMOTE_FEATURE = 0x1A ,
773
773
@@ -853,8 +853,8 @@ struct disconnection_reason_t : SafeEnum<disconnection_reason_t, uint8_t> {
853
853
*/
854
854
struct peripheral_privacy_configuration_t {
855
855
/* *
856
- * Indicates if non resolvable random address should be used when the
857
- * peripheral advertises non connectable packets.
856
+ * Indicates if nonresolvable random address should be used when the
857
+ * peripheral advertises nonconnectable packets.
858
858
*
859
859
* Resolvable random address continues to be used for connectable packets.
860
860
*/
@@ -873,7 +873,7 @@ struct peripheral_privacy_configuration_t {
873
873
874
874
/* *
875
875
* If a bond is present in the secure database and the address
876
- * resolution fail then reject the connection request with the error
876
+ * resolution fails, then reject the connection request with the error
877
877
* code AUTHENTICATION_FAILLURE.
878
878
*/
879
879
REJECT_NON_RESOLVED_ADDRESS,
@@ -899,17 +899,17 @@ struct peripheral_privacy_configuration_t {
899
899
};
900
900
901
901
/* *
902
- * Privacy Configuration of the central role.
902
+ * Privacy configuration of the central role.
903
903
*
904
904
* @note This configuration is also used when the local device operates as
905
905
* an observer.
906
906
*/
907
907
struct central_privay_configuration_t {
908
908
/* *
909
- * Indicates if non resolvable random address should be used when the
909
+ * Indicates if nonresolvable random address should be used when the
910
910
* central or observer sends scan request packets.
911
911
*
912
- * Resolvable random address continue to be used for connection requests.
912
+ * Resolvable random address continues to be used for connection requests.
913
913
*/
914
914
bool use_non_resolvable_random_address;
915
915
@@ -932,7 +932,7 @@ struct central_privay_configuration_t {
932
932
RESOLVE_AND_FORWARD,
933
933
934
934
/* *
935
- * Filter out packets containing a resolvable that cannot be resolved
935
+ * Filter out packets containing a resolvable address that cannot be resolved
936
936
* by this device.
937
937
*
938
938
* @note Filtering is applied if the local device contains at least
0 commit comments