Skip to content

Instantly share code, notes, and snippets.

View vbaderks's full-sized avatar

Victor Derks vbaderks

  • Nijmegen, The Netherlands
  • 17:13 (UTC +02:00)
View GitHub Profile
#include <stdio.h>
#include <stdint.h>
// Philips Sonicare NFC Head Password calculation by @atc1441
uint16_t CRC16(uint16_t crc, uint8_t *buffer, int len) // Default CRC16 Algo
{
while(len--)
{
crc ^= *buffer++ << 8;
int bits = 0;
do