@@ -176,7 +176,7 @@ class MbedCRC {
176
176
*
177
177
* CRC data if not available fully, CRC can be computed in parts with available data.
178
178
*
179
- * In case of hardware, intermediate values and states are saved by hardware and mutex
179
+ * In case of hardware, intermediate values and states are saved by hardware. Mutex
180
180
* locking is used to serialize access to hardware CRC.
181
181
*
182
182
* In case of software CRC, previous CRC output should be passed as argument to the
@@ -218,7 +218,7 @@ class MbedCRC {
218
218
return status;
219
219
}
220
220
221
- /* * Compute partial start, indicate start of partial computation
221
+ /* * Compute partial start, indicate start of partial computation.
222
222
*
223
223
* This API should be called before performing any partial computation
224
224
* with compute_partial API.
@@ -285,7 +285,7 @@ class MbedCRC {
285
285
return 0 ;
286
286
}
287
287
288
- /* * Get the current CRC polynomial
288
+ /* * Get the current CRC polynomial.
289
289
*
290
290
* @return Polynomial value
291
291
*/
@@ -311,7 +311,7 @@ class MbedCRC {
311
311
uint32_t *_crc_table;
312
312
CrcMode _mode;
313
313
314
- /* * Acquire exclusive access to CRC hardware/software
314
+ /* * Acquire exclusive access to CRC hardware/software.
315
315
*/
316
316
void lock ()
317
317
{
@@ -322,7 +322,7 @@ class MbedCRC {
322
322
#endif
323
323
}
324
324
325
- /* * Release exclusive access to CRC hardware/software
325
+ /* * Release exclusive access to CRC hardware/software.
326
326
*/
327
327
virtual void unlock ()
328
328
{
@@ -333,7 +333,7 @@ class MbedCRC {
333
333
#endif
334
334
}
335
335
336
- /* * Get the current CRC data size
336
+ /* * Get the current CRC data size.
337
337
*
338
338
* @return CRC data size in bytes
339
339
*/
@@ -342,7 +342,7 @@ class MbedCRC {
342
342
return (width <= 8 ? 1 : (width <= 16 ? 2 : 4 ));
343
343
}
344
344
345
- /* * Get the top bit of current CRC
345
+ /* * Get the top bit of current CRC.
346
346
*
347
347
* @return Top bit is set high for respective data width of current CRC
348
348
* Top bit for CRC width less then 8 bits will be set as 8th bit.
@@ -352,7 +352,7 @@ class MbedCRC {
352
352
return (width < 8 ? (1u << 7 ) : (uint32_t )(1ul << (width - 1 )));
353
353
}
354
354
355
- /* * Get the CRC data mask
355
+ /* * Get the CRC data mask.
356
356
*
357
357
* @return CRC data mask is generated based on current CRC width
358
358
*/
@@ -361,7 +361,7 @@ class MbedCRC {
361
361
return (width < 8 ? ((1u << 8 ) - 1 ) : (uint32_t )((uint64_t )(1ull << width) - 1 ));
362
362
}
363
363
364
- /* * Final value of CRC is reflected
364
+ /* * Final value of CRC is reflected.
365
365
*
366
366
* @param data final crc value, which should be reflected
367
367
* @return Reflected CRC value
@@ -384,7 +384,7 @@ class MbedCRC {
384
384
}
385
385
}
386
386
387
- /* * Data bytes are reflected
387
+ /* * Data bytes are reflected.
388
388
*
389
389
* @param data value to be reflected
390
390
* @return Reflected data value
@@ -406,7 +406,7 @@ class MbedCRC {
406
406
}
407
407
}
408
408
409
- /* * Bitwise CRC computation
409
+ /* * Bitwise CRC computation.
410
410
*
411
411
* @param buffer data buffer
412
412
* @param size size of the data
@@ -450,7 +450,7 @@ class MbedCRC {
450
450
return 0 ;
451
451
}
452
452
453
- /* * CRC computation using ROM tables
453
+ /* * CRC computation using ROM tables.
454
454
*
455
455
* @param buffer data buffer
456
456
* @param size size of the data
@@ -496,7 +496,7 @@ class MbedCRC {
496
496
return 0 ;
497
497
}
498
498
499
- /* * Constructor init called from all specialized cases of constructor
499
+ /* * Constructor init called from all specialized cases of constructor.
500
500
* Note: All construtor common code should be in this function.
501
501
*/
502
502
void mbed_crc_ctor (void )
0 commit comments