Bluetooth Low Energy for Smart Plug

Dependencies:   BLE_API mbed nRF51822

Fork of SmartPlugBLE by Pavit Noinongyao

crc8.h

Committer:
Slepnir
Date:
2015-07-14
Revision:
4:721ae30c92f8
Parent:
3:aaa92c61931a

File content as of revision 4:721ae30c92f8:

//================ File Despciption =========================================//
//=== File name : crc8.h
//=== 
//===========================================================================//

#ifndef CRC8__H
#define CRC8__H

//================ Include Header ===========================================//
//

//================ PULBIC DEFINE ============================================//
//
//================ PUBLIC MACRO =============================================//
//
//================ TYPEDEF DATA TYPE DEFINITION =============================//
//
//================ ENUMERATOR DEFINITION ====================================//
//
//================ TYPEDEF FUNCTION TYPE DEFFINITION ========================//
//
//================ TYPEDEF STRUCT/UNION =====================================//
//
//================ EXTERN FUNCTION ==========================================//


extern "C"{
    unsigned char Crc8(unsigned char* xx,const int size, unsigned char ucCRC);
    inline unsigned char crc8OneByte(unsigned char xdata,unsigned char ucCRC);
    inline unsigned char crc8Compute(unsigned char *p,unsigned char length); 
};
//================ EXTERN FUNCTION POINTER ==================================//
//
//================ EXTERN VARIABLE ==========================================//
//
//================ EXTERN QUEUE =============================================//
//
//================ END OF FILE ==============================================//
#endif
//#ifndef FILE_NAME_H