Skip to content

Commit bbb67a6

Browse files
author
Amanda Butler
authored
Edit Types.h
Edit file.
1 parent d00ad8b commit bbb67a6

File tree

1 file changed

+32
-32
lines changed
  • features/FEATURE_BLE/ble/gap

1 file changed

+32
-32
lines changed

features/FEATURE_BLE/ble/gap/Types.h

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace ble {
3333
/* BLE units, using microseconds as the common denominator */
3434

3535
/**
36-
* Time interval between two advertisement.
36+
* Time interval between two advertisements.
3737
*
3838
* The duration is in unit of 625µs and ranges from 0x20 to 0xFFFFFF .
3939
*
@@ -68,16 +68,16 @@ typedef Duration<uint16_t, 10000, Range<0x00, 0xFFFF>, /* forever */ Value<uint1
6868
typedef Duration<uint16_t, 1280000, Range<0x00, 0xFFFF> > scan_period_t;
6969

7070
/**
71-
* Time interval between two scan.
71+
* Time interval between two scans.
7272
*
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.
7474
*/
7575
typedef Duration<uint16_t, 625, Range<0x04, 0xFFFF> > scan_interval_t;
7676

7777
/**
7878
* Duration of a scan.
7979
*
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.
8181
*/
8282
typedef Duration<uint16_t, 625, Range<0x04, 0xFFFF> > scan_window_t;
8383

@@ -105,15 +105,15 @@ typedef Duration<uint16_t, 10000, Range<0x0A, 0x0C80> > supervision_timeout_t;
105105
typedef Duration<uint16_t, 625, Range<0, 0xFFFF> > conn_event_length_t;
106106

107107
/**
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.
110110
*
111111
* The duration is in unit of 10 milliseconds and ranges from 0x0A to 0x4000.
112112
*/
113113
typedef Duration<uint16_t, 10000, Range<0x0A, 0x4000> > sync_timeout_t;
114114

115115
/**
116-
* Interval between two periodic advertsising events.
116+
* Interval between two periodic advertising events.
117117
*
118118
* The duration is in unit of 1.250ms and ranges from 0x06 to 0xFFFF.
119119
*/
@@ -143,7 +143,7 @@ typedef uint16_t periodic_sync_handle_t;
143143
/**
144144
* Encapsulates the peripheral advertising modes.
145145
*
146-
* It determine how the device appears to other scanner and peripheral
146+
* It determines how the device appears to other scanner and peripheral
147147
* devices in the scanning range.
148148
*/
149149
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>
211211
enum type {
212212
COMPLETE = 0x00, /// Advertising payload complete.
213213
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.
215215
};
216216

217217
/**
@@ -370,8 +370,8 @@ typedef int8_t rssi_t;
370370
/**
371371
* Describe the advertising power.
372372
*
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
375375
* has no preference or if the power information is not available.
376376
*/
377377
typedef int8_t advertising_power_t;
@@ -392,18 +392,18 @@ struct advertising_filter_policy_t : SafeEnum<advertising_filter_policy_t, uint8
392392

393393
/**
394394
* 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.
396396
*/
397397
FILTER_SCAN_REQUESTS = 0x01,
398398

399399
/**
400400
* 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.
402402
*/
403403
FILTER_CONNECTION_REQUEST = 0x02,
404404

405405
/**
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
407407
* whitelist.
408408
*/
409409
FILTER_SCAN_AND_CONNECTION_REQUESTS = 0x03
@@ -427,14 +427,14 @@ struct scanning_filter_policy_t : SafeEnum<scanning_filter_policy_t, uint8_t> {
427427
/// enumeration of scanning_filter_policy_t values
428428
enum type {
429429
/**
430-
* Accept all advertising packets except directed advertising packet not
430+
* Accept all advertising packets except directed advertising packets not
431431
* addressed to this device.
432432
*/
433433
NO_FILTER = 0x00,
434434

435435
/**
436436
* 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.
438438
*/
439439
FILTER_ADVERTISING = 0x01,
440440

@@ -449,9 +449,9 @@ struct scanning_filter_policy_t : SafeEnum<scanning_filter_policy_t, uint8_t> {
449449

450450
/**
451451
* 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
455455
* does not address this device.
456456
*
457457
* @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> {
471471
};
472472

473473
/**
474-
* Filter policy which can be used during connection initiation.
474+
* Filter policy that you can use during connection initiation.
475475
*/
476476
struct initiator_filter_policy_t : SafeEnum<initiator_filter_policy_t, uint8_t> {
477477
/// enumeration of initiator_filter_policy_t values.
@@ -482,7 +482,7 @@ struct initiator_filter_policy_t : SafeEnum<initiator_filter_policy_t, uint8_t>
482482
NO_FILTER,
483483

484484
/**
485-
* Whitelist is used to determine which advertiser to connect to.
485+
* The whitelist is used to determine which advertiser to connect to.
486486
*/
487487
USE_WHITE_LIST
488488
};
@@ -515,7 +515,7 @@ struct duplicates_filter_t : SafeEnum<duplicates_filter_t, uint8_t> {
515515
ENABLE,
516516

517517
/**
518-
* Enable duplicate filtering, reset the cache periodically.
518+
* Enable duplicate filtering, and reset the cache periodically.
519519
*/
520520
PERIODIC_RESET
521521
};
@@ -573,7 +573,7 @@ struct own_address_type_t : SafeEnum<own_address_type_t, uint8_t> {
573573
/**
574574
* Type of an address to connect to.
575575
*
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.
577577
*/
578578
struct target_peer_address_type_t : SafeEnum<target_peer_address_type_t, uint8_t> {
579579
/// enumeration of target_peer_address_type_t values.
@@ -710,7 +710,7 @@ struct connection_role_t : SafeEnum<connection_role_t, uint8_t> {
710710
/**
711711
* Peripheral Role.
712712
*
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
714714
* acts as a slave when connected.
715715
*
716716
* @note A peripheral is a broadcaster.
@@ -767,7 +767,7 @@ struct local_disconnection_reason_t : SafeEnum<local_disconnection_reason_t, uin
767767
POWER_OFF = 0x15,
768768

769769
/**
770-
* Remote feature not supported
770+
* Remote feature not supported.
771771
*/
772772
UNSUPPORTED_REMOTE_FEATURE = 0x1A,
773773

@@ -853,8 +853,8 @@ struct disconnection_reason_t : SafeEnum<disconnection_reason_t, uint8_t> {
853853
*/
854854
struct peripheral_privacy_configuration_t {
855855
/**
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.
858858
*
859859
* Resolvable random address continues to be used for connectable packets.
860860
*/
@@ -873,7 +873,7 @@ struct peripheral_privacy_configuration_t {
873873

874874
/**
875875
* 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
877877
* code AUTHENTICATION_FAILLURE.
878878
*/
879879
REJECT_NON_RESOLVED_ADDRESS,
@@ -899,17 +899,17 @@ struct peripheral_privacy_configuration_t {
899899
};
900900

901901
/**
902-
* Privacy Configuration of the central role.
902+
* Privacy configuration of the central role.
903903
*
904904
* @note This configuration is also used when the local device operates as
905905
* an observer.
906906
*/
907907
struct central_privay_configuration_t {
908908
/**
909-
* Indicates if non resolvable random address should be used when the
909+
* Indicates if nonresolvable random address should be used when the
910910
* central or observer sends scan request packets.
911911
*
912-
* Resolvable random address continue to be used for connection requests.
912+
* Resolvable random address continues to be used for connection requests.
913913
*/
914914
bool use_non_resolvable_random_address;
915915

@@ -932,7 +932,7 @@ struct central_privay_configuration_t {
932932
RESOLVE_AND_FORWARD,
933933

934934
/**
935-
* Filter out packets containing a resolvable that cannot be resolved
935+
* Filter out packets containing a resolvable address that cannot be resolved
936936
* by this device.
937937
*
938938
* @note Filtering is applied if the local device contains at least

0 commit comments

Comments
 (0)