|
CoffeePi
Coffee machine control for Raspberry Pi
|
#include "crc.h"Macros | |
| #define | WIDTH (8 * sizeof(crc)) |
| #define | TOPBIT (1 << (WIDTH - 1)) |
| #define | REFLECT_DATA(X) ((unsigned char) reflect((X), 8)) |
| #define | REFLECT_REMAINDER(X) ((crc) reflect((X), WIDTH)) |
Functions | |
| crc | crcSlow (unsigned char const message[], int nBytes) |
| void | crcInit (void) |
| crc | crcFast (unsigned char const message[], int nBytes) |
Variables | |
| crc | crcTable [256] |
| #define REFLECT_DATA | ( | X | ) | ((unsigned char) reflect((X), 8)) |
| #define TOPBIT (1 << (WIDTH - 1)) |
| #define WIDTH (8 * sizeof(crc)) |
| crc crcFast | ( | unsigned char const | message[], |
| int | nBytes | ||
| ) |
| void crcInit | ( | void | ) |
| crc crcSlow | ( | unsigned char const | message[], |
| int | nBytes | ||
| ) |
| crc crcTable[256] |
1.8.10