Demo HCI Implementation for WiMOD-LR Devices  V2.0.3
CRC16.cpp File Reference
#include "CRC16.h"
Include dependency graph for CRC16.cpp:

Functions

UINT16 CRC16_Calc (UINT8 *data, UINT16 length, UINT16 initVal)
 calculate CRC16 More...
 
bool CRC16_Check (UINT8 *data, UINT16 length, UINT16 initVal)
 calculate & test CRC16 More...
 

Function Documentation

◆ CRC16_Calc()

UINT16 CRC16_Calc ( UINT8 *  data,
UINT16  length,
UINT16  initVal 
)

calculate CRC16

Calc CRC16.

This function calculates the one's complement of the standard 16-BIT CRC CCITT polynomial G(x) = 1 + x^5 + x^12 + x^16

◆ CRC16_Check()

bool CRC16_Check ( UINT8 *  data,
UINT16  length,
UINT16  initVal 
)

calculate & test CRC16

Calc & Check CRC16.

This function checks a data block with attached CRC16

Here is the call graph for this function: