Solaris Software
Loading...
Searching...
No Matches
crc.c File Reference

CRC-16/CCITT implementation. More...

#include "spp/util/crc.h"
Include dependency graph for crc.c:

Go to the source code of this file.

Functions

spp_uint16_t SPP_UTIL_crc16 (const spp_uint8_t *p_data, spp_uint32_t length)
 Compute a CRC-16/CCITT checksum over a byte buffer.

Detailed Description

CRC-16/CCITT implementation.

Definition in file crc.c.

Function Documentation

◆ SPP_UTIL_crc16()

spp_uint16_t SPP_UTIL_crc16 ( const spp_uint8_t * p_data,
spp_uint32_t length )

Compute a CRC-16/CCITT checksum over a byte buffer.

Parameters
[in]p_dataPointer to the data buffer.
[in]lengthNumber of bytes to process.
Returns
16-bit CRC value.

Definition at line 8 of file crc.c.

References K_SPP_CRC_INIT, K_SPP_CRC_POLY, and SPP_UTIL_crc16().

Referenced by packetCrc(), and SPP_UTIL_crc16().

Here is the call graph for this function:
Here is the caller graph for this function: