Coder Social home page Coder Social logo

naguissa / ucrc16xmodemlib Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 172 KB

Tiny and cross-device compatible CRC16 XModem calculator library. Compatible with UKHAS - uCRC16XModemLib

Home Page: https://www.foroelectro.net/librerias-arduino-ide-f29/ucrc16xmodemlib-pequena-libreria-para-calcular-el--t321.html

License: GNU Lesser General Public License v3.0

C++ 100.00%
arduino arduino-library crc crc16 xmodem xmodem-crc ukhas naguissa

ucrc16xmodemlib's Introduction

Tiny and cross-device compatible CRC16 XModem calculator library UKHAS.org.uk compatible - uCRC16XModemLib

Master status: Build Status

What is this repository for?

Tiny and cross-device compatible CRC16 XModem calculator library

Compatible with UKHAS.org.uk message signing, use offset 2 on full message to skip leading "$".

Supports any microcontroller.

Usage

This library is used with only static methods, you don't need to (and can't) initialize any class object.

You have these methods:

  • uCRC16XModemLibObject.reset() : Resets internal state
  • uCRC16XModemLibObject.feedBit(bool) : Feeds a bit
  • uCRC16XModemLibObject.feedByte(char) : Feeds a byte
  • uCRC16XModemLibObject.getResult() : Gets CRC16 in a uint16_t

Library provides also two shorthand methods:

  • uint16_t CRC = uCRC16XModemLibObject.calculate(MessageCharArray) : Calculates CRC for a message
  • uint16_t CRC = uCRC16XModemLibObject.calculate(MessageCharArray, 2) : Calculates CRC for a message starting from offset 2 (recommended use for UKHAS.org.uk)

How do I get set up?

You can get it from Arduino libraries directly, searching by uCRC16XModemLib.

For manual installation:

Examples

Included on example folder, available on Arduino IDE.

Who do I talk to?

Contribute

Any code contribution, report or comment are always welcome. Don't hesitate to use GitHub for that.

Thanks for your support.

Contributors hall of fame: https://www.foroelectro.net/hall-of-fame-f32/contributors-contribuyentes-t271.html

ucrc16xmodemlib's People

Contributors

naguissa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.