|
27 | 27 | /**
|
28 | 28 | * Parameters defining the scan process.
|
29 | 29 | *
|
30 |
| - * The scan procedure is defined by four distinct parameters: |
31 |
| - * - Scan window: Period during which the scanner listen to advertising |
32 |
| - * channels. That value shall be in the range 2.5ms to 10.24s. This value |
| 30 | + * Four distinct parameters define the scan procedure: |
| 31 | + * - Scan window: Period during which the scanner listens to advertising |
| 32 | + * channels. That value is in the range of 2.5ms to 10.24s. This value |
33 | 33 | * can be set at construction time, updated by calling setWindow() and
|
34 | 34 | * retrieved by invoking getWindow().
|
35 | 35 | *
|
36 |
| - * - Scan interval: interval between the start of two consecutive scan window. |
| 36 | + * - Scan interval: Interval between the start of two consecutive scan windows. |
37 | 37 | * That value shall be greater or equal to the scan window value. The
|
38 | 38 | * maximum allowed value is 10.24ms. The scan interval value can be set at
|
39 | 39 | * construction time, updated with a call to setInterval() and queried by a
|
|
43 | 43 | * construction time, updated with setTimeout() and obtained from
|
44 | 44 | * getTimeout().
|
45 | 45 | *
|
46 |
| - * - Active scanning: If set then the scanner sends scan requests to scanable |
| 46 | + * - Active scanning: If set, then the scanner sends scan requests to a scannable |
47 | 47 | * or connectable advertiser. Advertisers may respond to the scan request
|
48 |
| - * by a scan response containing the scan response payload. If not set then |
| 48 | + * by a scan response containing the scan response payload. If not set, then |
49 | 49 | * the scanner does not send any request. This flag is set at construction
|
50 | 50 | * time, may be updated with the help of setActiveScanning() and retrieved
|
51 | 51 | * by getActiveScanning().
|
52 | 52 | *
|
53 |
| - * @note If the scan windows duration is equal to the scan interval then the |
54 |
| - * device should listen continuously during the scan procedure. |
| 53 | + * @note If the scan window's duration is equal to the scan interval, then the |
| 54 | + * device listens continuously during the scan procedure. |
55 | 55 | */
|
56 | 56 | class GapScanningParams {
|
57 | 57 | public:
|
@@ -90,18 +90,18 @@ class GapScanningParams {
|
90 | 90 | * Construct an instance of GapScanningParams.
|
91 | 91 | *
|
92 | 92 | * @param[in] interval Milliseconds interval between the start of two
|
93 |
| - * consecutive scan window. The value passed shall be between the scan |
| 93 | + * consecutive scan windows. The value passed is between the scan |
94 | 94 | * window value and 10.24 seconds.
|
95 | 95 | *
|
96 |
| - * @param[in] window Milliseconds period during which the device should |
97 |
| - * listen to advertising channels. The value of the scan window shall be in |
98 |
| - * the range 2.5ms to 10.24s. |
| 96 | + * @param[in] window Milliseconds period during which the device |
| 97 | + * listens to advertising channels. The value of the scan window is in |
| 98 | + * the range of 2.5ms to 10.24s. |
99 | 99 | *
|
100 | 100 | * @param[in] timeout Duration in seconds of the scan procedure. The special
|
101 | 101 | * value 0 may be used when the scan procedure is not time bounded.
|
102 | 102 | *
|
103 |
| - * @param[in] activeScanning If true then the scanner sends scan requests to |
104 |
| - * to scanable or connectable advertiser. Advertisers may respond to the |
| 103 | + * @param[in] activeScanning If true, then the scanner sends scan requests to |
| 104 | + * to scannable or connectable advertiser. Advertisers may respond to the |
105 | 105 | * scan request by a scan response containing the scan response payload. If
|
106 | 106 | * false, the scanner does not send any request.
|
107 | 107 | *
|
@@ -161,7 +161,7 @@ class GapScanningParams {
|
161 | 161 | /**
|
162 | 162 | * Update the active scanning flag.
|
163 | 163 | *
|
164 |
| - * @param[in] activeScanning Mew boolean value of active scanning. |
| 164 | + * @param[in] activeScanning New boolean value of active scanning. |
165 | 165 | */
|
166 | 166 | void setActiveScanning(bool activeScanning);
|
167 | 167 |
|
|
0 commit comments