crc.h
Go to the documentation of this file.
00001 #ifndef __MSP430WARE_CRC_H__
00002 #define __MSP430WARE_CRC_H__
00003 
00004 //*****************************************************************************
00005 //
00006 //The following are the defines to include the required modules for this
00007 //peripheral in msp430xgeneric.h file
00008 //
00009 //*****************************************************************************
00010 #define __MSP430_HAS_CRC__
00011 
00012 //*****************************************************************************
00013 //
00014 //Prototypes for the APIs.
00015 //
00016 //*****************************************************************************
00017 
00018 extern void CRC_setSeed (unsigned int baseAddress,
00019     unsigned int seed);
00020 
00021 extern void CRC_setData (unsigned int baseAddress,
00022     unsigned int signature);
00023 
00024 extern void CRC_setSignatureByteReversed (unsigned int baseAddress,
00025     unsigned int signature);
00026 
00027 extern unsigned int CRC_getSignature (unsigned int baseAddress);
00028 
00029 extern unsigned int CRC_getResult (unsigned int baseAddress);
00030 
00031 extern unsigned int CRC_getResultBitReversed (unsigned int baseAddress);
00032 
00033 #endif

Copyright 2012, Texas Instruments Incorporated