SDK API > BS2_ComputeCRC16CCITT
Calculates the CRC-16 CCITT checksum.
#include "BS_API.h" int BS2_ComputeCRC16CCITT(uint8_t* data, uint32_t dataLen, uint16_t* crc);
data
: Plain datadataLen
: Length of the plain datacrc
: Pointer to store the CRC-16 CCITT checksum
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.