Z-Wave Protocol Controller Reference
zwave_controller_crc16.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
14#include <stdint.h>
22#ifndef ZWAVE_CONTROLLER_CRC16_H
23#define ZWAVE_CONTROLLER_CRC16_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
38uint16_t zwave_controller_crc16(uint16_t crc16,
39 const uint8_t *data_buf,
40 unsigned long data_length);
41#ifdef __cplusplus
42}
43#endif
44
45#endif // ZWAVE_CONTROLLER_CRC16_H
uint16_t zwave_controller_crc16(uint16_t crc16, const uint8_t *data_buf, unsigned long data_length)
Calculation of CRC16-CCITT with Polynomial 0x1021 on data.
Definition: zwave_controller_crc16.c:15