Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Crc16.h
Go to the documentation of this file.
1
/*
2
* Author: Crownstone Team
3
* Copyright: Crownstone (https://crownstone.rocks)
4
* Date: Feb 23, 2021
5
* License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6
*/
7
8
#pragma once
9
10
#include <cstdint>
11
20
uint16_t
crc16
(
const
uint8_t* data, uint16_t size, uint16_t* prevCrc =
nullptr
);
crc16
uint16_t crc16(const uint8_t *data, uint16_t size, uint16_t *prevCrc=nullptr)
Calculates or updates the CRC-16-CCITT based on given data.
source
include
util
cs_Crc16.h
Generated by
1.9.5