-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathOWIcrc.h
34 lines (27 loc) · 1.02 KB
/
OWIcrc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// This file has been prepared for Doxygen automatic documentation generation.
/*! \file ********************************************************************
*
* Atmel Corporation
*
* \li File: OWIcrc.h
* \li Compiler: IAR EWAAVR 3.20a
* \li Support mail: [email protected]
*
* \li Supported devices: All AVRs.
*
* \li Application Note: AVR318 - Dallas 1-Wire(R) master.
*
*
* \li Description: Header file for OWIUtils.c
*
* $Revision: 1.1.1.1 $
* $Date: 2010-01-07 16:39:25 $
****************************************************************************/
#ifndef _OWI_UTILS_H_
#define _OWI_UTILS_H_
#define OWI_CRC_OK 0x00 //!< CRC check succeded
#define OWI_CRC_ERROR 0x01 //!< CRC check failed
unsigned char OWI_ComputeCRC8(unsigned char inData, unsigned char seed);
unsigned int OWI_ComputeCRC16(unsigned char inData, unsigned int seed);
unsigned char OWI_CheckRomCRC(unsigned char * romValue);
#endif