CRINSA-team2025
V1
Documentation du Club Robot INSA Rennes 2025
Chargement...
Recherche...
Aucune correspondance
CRC16.h
1
#include <Arduino.h>
2
#include <stdio.h>
3
#include <string.h>
4
5
#define CRC_POLYNOME 0X1021
//CRC16_CCITT
6
7
8
class
CRC16
9
{
10
public
:
11
CRC16();
12
13
uint16_t CRCprocessByte(uint8_t data);
14
uint16_t CRCprocessBuffer(
const
uint8_t *data_p,
int
length);
15
bool
CRCcheck(uint8_t *data_p, uint16_t length, uint16_t crc);
16
17
private
:
18
19
uint16_t crc;
20
21
22
};
lib
CRC16
CRC16.h
Généré par
1.13.2