Files
nuki_hub/lib/Crc16
iranl 6b0100fd61 Arduino Core 3 (#407)
* Add and remove libs and components for Arduino Core 3

* Arduino Core 3

* Add back Solo1

* Change ESP32-S3 to 4MB build

* Update README.md

* Fix retain and number of retries

* Fix rolling log

* Fix defaults

* Fix BleScanner on Solo1

* Export settings

* Import settings

* Fix HA Battery voltage

* Change submodule

* Update espMqttClient and AsyncTCP

* Webserial and MQTT/Network reconnecting

* Update nuki_ble

---------

Co-authored-by: iranl <iranl@github.com>
2024-07-05 23:45:39 +07:00
..
2022-03-22 21:10:43 +01:00
2022-03-22 21:10:43 +01:00
2022-03-22 21:10:43 +01:00
2022-03-22 21:10:43 +01:00

Crc16 A simple crc-16 library for Arduino

Description

Use this library to implement crc checks on buffer arrays

Usage

There are two modes to calculate crc: incremental and single call:

  • In first mode the crc is calculated adding data bytes one by one and then calculating final crc, this is useful for reception routines that receives bytes asynchrously,
  • The second mode is used to obtain crc from a buffer array. Using one mode doesn't interfere with the other (So you can calculate tx crc while receiving data and updating rx crc)

Is possible to configure crc with all crc-16bit standards (by default is defined XModem).

See possible crc variants: http://www.lammertbies.nl/comm/info/crc-calculation.html