#include "rldf1.h"
#include <time.h>
Go to the source code of this file.
|
static unsigned short | calcCRC (unsigned short crc, unsigned short buffer) |
|
static unsigned short | computeCRC (const unsigned char *buffer, int len) |
|
◆ DBGPRINTF
#define DBGPRINTF |
( |
|
x... | ) |
|
◆ calcCRC()
static unsigned short calcCRC |
( |
unsigned short |
crc, |
|
|
unsigned short |
buffer |
|
) |
| |
|
static |
Definition at line 118 of file rldf1.cpp.
120 unsigned short temp1, y;
121 temp1 = crc ^ buffer;
122 crc = (crc & 0xff00) | (temp1 & 0xff);
123 for (y = 0; y < 8; y++) {
◆ computeCRC()
static unsigned short computeCRC |
( |
const unsigned char * |
buffer, |
|
|
int |
len |
|
) |
| |
|
static |
Definition at line 133 of file rldf1.cpp.
135 unsigned short crc = 0;
136 for (
int x=0; x<len; x++) {
137 crc =
calcCRC(crc, (
unsigned short)buffer[x] );
static unsigned short calcCRC(unsigned short crc, unsigned short buffer)