Skip to content
Commit 5d8eadd7 authored by Andrzej Kaczmarek's avatar Andrzej Kaczmarek Committed by Anas Nashif
Browse files

drivers: crc: Add 'pad' parameter to crc16()



'pad' parameter controls whether crc16() should add padding at the end
of input bytes or not. This allows to compute CRC16 for data stored in
non-contiguous buffers where CRC value is calculated using subsequent
calls to crc16() with padding added only for last chunk.

Signed-off-by: default avatarAndrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
parent 5d1fcfc2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment